Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 1c42ace

Browse files
tayotensorflower-gardener
authored andcommitted
Fixes typo in warning for TPUEstimator eval with more than one host.
PiperOrigin-RevId: 365064828
1 parent 05247f6 commit 1c42ace

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tensorflow_estimator/python/estimator/tpu/tpu_context.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,10 +762,9 @@ def _validate_tpu_configuration(self):
762762
'mode: {}; num_hosts: {}; num_replicas=1:{}'.format(
763763
self._config.tpu_config.per_host_input_for_training, num_hosts,
764764
num_replicas))
765-
if num_replicas > 1 and self.is_input_per_host_with_iterators():
765+
if num_hosts > 1 and self.is_input_per_host_with_iterators():
766766
tf.compat.v1.logging.warn('Running TPUEstimator.evaluate for input mode'
767-
' PER_HOST_V2 and num_hosts %d',
768-
self.num_replicas)
767+
' PER_HOST_V2 and num_hosts %d', num_hosts)
769768
else:
770769
assert mode == model_fn_lib.ModeKeys.PREDICT
771770
if self._predict_batch_size is None:

0 commit comments

Comments
 (0)