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
288340b6
Commit
288340b6
authored
Mar 11, 2021
by
Jin Young Sohn
Committed by
A. Unique TensorFlower
Mar 11, 2021
Browse files
Internal change
PiperOrigin-RevId: 362271822
parent
c3efde3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
official/vision/image_classification/mnist_main.py
official/vision/image_classification/mnist_main.py
+5
-0
No files found.
official/vision/image_classification/mnist_main.py
View file @
288340b6
...
...
@@ -81,6 +81,9 @@ def run(flags_obj, datasets_override=None, strategy_override=None):
Returns:
Dictionary of training and eval stats.
"""
# Start TF profiler server.
tf
.
profiler
.
experimental
.
server
.
start
(
flags_obj
.
profiler_port
)
strategy
=
strategy_override
or
distribute_utils
.
get_distribution_strategy
(
distribution_strategy
=
flags_obj
.
distribution_strategy
,
num_gpus
=
flags_obj
.
num_gpus
,
...
...
@@ -156,6 +159,8 @@ def define_mnist_flags():
flags_core
.
define_distribution
()
flags
.
DEFINE_bool
(
'download'
,
False
,
'Whether to download data to `--data_dir`.'
)
flags
.
DEFINE_integer
(
'profiler_port'
,
9012
,
'Port to start profiler server on.'
)
FLAGS
.
set_default
(
'batch_size'
,
1024
)
...
...
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