Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
a01346f0
Commit
a01346f0
authored
Nov 16, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 342803522
parent
9ff61873
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
orbit/runner.py
orbit/runner.py
+8
-8
No files found.
orbit/runner.py
View file @
a01346f0
...
...
@@ -32,14 +32,14 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
def
train
(
self
,
num_steps
:
tf
.
Tensor
)
->
Optional
[
Output
]:
"""Implements `num_steps` steps of training.
This method will b
y
called the `Controller` to perform the "inner loop"
of
training. This inner loop amortizes the cost of bookkeeping associated
with
checkpointing, evaluation, and writing summaries. Additionally, the
inner
loop can be implemented (if desired) using TensorFlow's looping
constructs
(e.g. a `for` loop over a `tf.range` inside a `tf.function`),
which can be
necessary for getting optimal performance when running on TPU.
For cases
that don't require peak performance, a simple Python loop can be
used
instead for simplicity.
This method will b
e
called
by
the `Controller` to perform the "inner loop"
of
training. This inner loop amortizes the cost of bookkeeping associated
with
checkpointing, evaluation, and writing summaries. Additionally, the
inner
loop can be implemented (if desired) using TensorFlow's looping
constructs
(e.g. a `for` loop over a `tf.range` inside a `tf.function`),
which can be
necessary for getting optimal performance when running on TPU.
For cases
that don't require peak performance, a simple Python loop can be
used
instead for simplicity.
Args:
num_steps: The number of training steps to run. Note that it is up to the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment