"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "3c95b05eec80b28b36e11e709d24da78636e01a7"
Commit a01346f0 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 342803522
parent 9ff61873
...@@ -32,14 +32,14 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta): ...@@ -32,14 +32,14 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
def train(self, num_steps: tf.Tensor) -> Optional[Output]: def train(self, num_steps: tf.Tensor) -> Optional[Output]:
"""Implements `num_steps` steps of training. """Implements `num_steps` steps of training.
This method will by called the `Controller` to perform the "inner loop" of This method will be called by the `Controller` to perform the "inner loop"
training. This inner loop amortizes the cost of bookkeeping associated with of training. This inner loop amortizes the cost of bookkeeping associated
checkpointing, evaluation, and writing summaries. Additionally, the inner with checkpointing, evaluation, and writing summaries. Additionally, the
loop can be implemented (if desired) using TensorFlow's looping constructs inner loop can be implemented (if desired) using TensorFlow's looping
(e.g. a `for` loop over a `tf.range` inside a `tf.function`), which can be constructs (e.g. a `for` loop over a `tf.range` inside a `tf.function`),
necessary for getting optimal performance when running on TPU. For cases which can be necessary for getting optimal performance when running on TPU.
that don't require peak performance, a simple Python loop can be used For cases that don't require peak performance, a simple Python loop can be
instead for simplicity. used instead for simplicity.
Args: Args:
num_steps: The number of training steps to run. Note that it is up to the num_steps: The number of training steps to run. Note that it is up to the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment