提交 b26a5ca6 编写于 作者: R Ruoxin Sang 提交者: A. Unique TensorFlower

Don't early return if the global step is not updated by `num_steps` as...

Don't early return if the global step is not updated by `num_steps` as expected. This still allows summary and metric reporting.

PiperOrigin-RevId: 386967587
上级 e3c7e300
......@@ -446,14 +446,13 @@ class Controller:
f"{num_steps}. Old value was {current_step}, expected updated value "
f"to be {expected_step}, but it was {self.global_step.numpy()}.")
logging.warning(message)
return
train_output = train_output or {}
for action in self.train_actions:
action(train_output)
train_output = tf.nest.map_structure(utils.get_value, train_output)
current_step = expected_step
current_step = self.global_step.numpy()
steps_per_second = self.step_timer.steps_per_second()
_log(f"train | step: {current_step: 6d} | "
f"steps/sec: {steps_per_second: 6.1f} | "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册