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
82f46dc7
Commit
82f46dc7
authored
Nov 12, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 342098346
parent
865631be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/core/train_lib.py
official/core/train_lib.py
+3
-0
No files found.
official/core/train_lib.py
View file @
82f46dc7
...
@@ -228,6 +228,9 @@ def run_experiment(distribution_strategy: tf.distribute.Strategy,
...
@@ -228,6 +228,9 @@ def run_experiment(distribution_strategy: tf.distribute.Strategy,
else
:
else
:
raise
NotImplementedError
(
'The mode is not implemented: %s'
%
mode
)
raise
NotImplementedError
(
'The mode is not implemented: %s'
%
mode
)
if
hasattr
(
trainer
.
model
,
'count_params'
):
logging
.
info
(
'Number of trainable params in model: %f Millions.'
,
trainer
.
model
.
count_params
()
/
10.
**
6
)
if
run_post_eval
:
if
run_post_eval
:
with
distribution_strategy
.
scope
():
with
distribution_strategy
.
scope
():
return
trainer
.
model
,
trainer
.
evaluate
(
return
trainer
.
model
,
trainer
.
evaluate
(
...
...
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