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
6994693d
Commit
6994693d
authored
Aug 04, 2020
by
Ruoxin Sang
Committed by
A. Unique TensorFlower
Aug 04, 2020
Browse files
Internal change
PiperOrigin-RevId: 324919232
parent
9b6cd106
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
orbit/runner.py
orbit/runner.py
+1
-1
orbit/utils.py
orbit/utils.py
+1
-1
No files found.
orbit/runner.py
View file @
6994693d
...
@@ -34,7 +34,7 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
...
@@ -34,7 +34,7 @@ class AbstractTrainer(tf.Module, metaclass=abc.ABCMeta):
large in Eager mode. It is usually encouraged to create a host training loop
large in Eager mode. It is usually encouraged to create a host training loop
(e.g. using a `tf.range` wrapping `strategy.run` inside a
(e.g. using a `tf.range` wrapping `strategy.run` inside a
`tf.function`) in the TPU case. For the cases that don't require host
`tf.function`) in the TPU case. For the cases that don't require host
training loop to ach
e
ive peak performance, users can just implement a simple
training loop to achi
e
ve peak performance, users can just implement a simple
python loop to drive each step.
python loop to drive each step.
Args:
Args:
...
...
orbit/utils.py
View file @
6994693d
...
@@ -432,7 +432,7 @@ def train_function_with_summaries(*args, **kwargs):
...
@@ -432,7 +432,7 @@ def train_function_with_summaries(*args, **kwargs):
return
decorator
return
decorator
def
get_value
(
x
)
->
np
.
n
darray
:
def
get_value
(
x
)
->
np
.
n
umber
:
"""Returns the value of a variable/tensor.
"""Returns the value of a variable/tensor.
Args:
Args:
...
...
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