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
0c49c07b
Commit
0c49c07b
authored
Mar 25, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 437282849
parent
e4be7e00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
official/benchmark/models/resnet_imagenet_main.py
official/benchmark/models/resnet_imagenet_main.py
+2
-3
No files found.
official/benchmark/models/resnet_imagenet_main.py
View file @
0c49c07b
...
...
@@ -74,8 +74,6 @@ def run(flags_obj):
Returns:
Dictionary of training and eval stats.
"""
keras_utils
.
set_session_config
(
enable_xla
=
flags_obj
.
enable_xla
)
# Execute flag override logic for better model performance
if
flags_obj
.
tf_gpu_thread_mode
:
keras_utils
.
set_gpu_thread_mode_and_count
(
...
...
@@ -251,7 +249,8 @@ def run(flags_obj):
optimizer
=
optimizer
,
metrics
=
([
'sparse_categorical_accuracy'
]
if
flags_obj
.
report_accuracy_metrics
else
None
),
run_eagerly
=
flags_obj
.
run_eagerly
)
run_eagerly
=
flags_obj
.
run_eagerly
,
jit_compile
=
flags_obj
.
enable_xla
)
train_epochs
=
flags_obj
.
train_epochs
...
...
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