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
83145027
Commit
83145027
authored
Jan 22, 2021
by
Steven Hickson
Committed by
A. Unique TensorFlower
Jan 22, 2021
Browse files
Internal change
PiperOrigin-RevId: 353260280
parent
6d4ba79d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/modeling/performance.py
official/modeling/performance.py
+1
-1
No files found.
official/modeling/performance.py
View file @
83145027
...
@@ -40,7 +40,7 @@ def configure_optimizer(optimizer,
...
@@ -40,7 +40,7 @@ def configure_optimizer(optimizer,
optimizer
,
dynamic
=
False
,
initial_scale
=
loss_scale
)
optimizer
,
dynamic
=
False
,
initial_scale
=
loss_scale
)
if
use_graph_rewrite
:
if
use_graph_rewrite
:
# Note: the model dtype must be 'float32', which will ensure
# Note: the model dtype must be 'float32', which will ensure
# tf.
c
keras.mixed_precision and
# tf.keras.mixed_precision and
# tf.train.experimental.enable_mixed_precision_graph_rewrite do not double
# tf.train.experimental.enable_mixed_precision_graph_rewrite do not double
# up.
# up.
optimizer
=
tf
.
train
.
experimental
.
enable_mixed_precision_graph_rewrite
(
optimizer
=
tf
.
train
.
experimental
.
enable_mixed_precision_graph_rewrite
(
...
...
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