Skip to content

Commit a01346f

Browse files
Internal change
PiperOrigin-RevId: 342803522
1 parent 9ff6187 commit a01346f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

orbit/runner.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
3232
def train(self, num_steps: tf.Tensor) -> Optional[Output]:
3333
"""Implements `num_steps` steps of training.
3434
35-
This method will by called the `Controller` to perform the "inner loop" of
36-
training. This inner loop amortizes the cost of bookkeeping associated with
37-
checkpointing, evaluation, and writing summaries. Additionally, the inner
38-
loop can be implemented (if desired) using TensorFlow's looping constructs
39-
(e.g. a `for` loop over a `tf.range` inside a `tf.function`), which can be
40-
necessary for getting optimal performance when running on TPU. For cases
41-
that don't require peak performance, a simple Python loop can be used
42-
instead for simplicity.
35+
This method will be called by the `Controller` to perform the "inner loop"
36+
of training. This inner loop amortizes the cost of bookkeeping associated
37+
with checkpointing, evaluation, and writing summaries. Additionally, the
38+
inner loop can be implemented (if desired) using TensorFlow's looping
39+
constructs (e.g. a `for` loop over a `tf.range` inside a `tf.function`),
40+
which can be necessary for getting optimal performance when running on TPU.
41+
For cases that don't require peak performance, a simple Python loop can be
42+
used instead for simplicity.
4343
4444
Args:
4545
num_steps: The number of training steps to run. Note that it is up to the

0 commit comments

Comments
 (0)