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
98abe4b8
Commit
98abe4b8
authored
Mar 02, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Mar 02, 2020
Browse files
Remove an assert.
PiperOrigin-RevId: 298402269
parent
fae6ca34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
official/modeling/model_training_utils.py
official/modeling/model_training_utils.py
+0
-4
No files found.
official/modeling/model_training_utils.py
View file @
98abe4b8
...
@@ -168,10 +168,6 @@ def run_customized_training_loop(
...
@@ -168,10 +168,6 @@ def run_customized_training_loop(
assert
tf
.
executing_eagerly
()
assert
tf
.
executing_eagerly
()
if
run_eagerly
:
if
run_eagerly
:
if
steps_per_loop
>
1
:
raise
ValueError
(
'steps_per_loop is used for performance optimization. When you want '
'to run eagerly, you cannot leverage graph mode loop.'
)
if
isinstance
(
strategy
,
tf
.
distribute
.
experimental
.
TPUStrategy
):
if
isinstance
(
strategy
,
tf
.
distribute
.
experimental
.
TPUStrategy
):
raise
ValueError
(
raise
ValueError
(
'TPUStrategy should not run eagerly as it heavily replies on graph'
'TPUStrategy should not run eagerly as it heavily replies on graph'
...
...
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