@@ -32,14 +32,14 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
32
32
def train (self , num_steps : tf .Tensor ) -> Optional [Output ]:
33
33
"""Implements `num_steps` steps of training.
34
34
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.
43
43
44
44
Args:
45
45
num_steps: The number of training steps to run. Note that it is up to the
0 commit comments