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
078575a1
Unverified
Commit
078575a1
authored
Feb 14, 2019
by
Toby Boyd
Committed by
GitHub
Feb 14, 2019
Browse files
added data_dir. (#6205)
parent
68b724ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/resnet/keras/keras_imagenet_benchmark.py
official/resnet/keras/keras_imagenet_benchmark.py
+3
-1
No files found.
official/resnet/keras/keras_imagenet_benchmark.py
View file @
078575a1
...
@@ -70,9 +70,11 @@ class Resnet50KerasAccuracy(keras_benchmark.KerasBenchmark):
...
@@ -70,9 +70,11 @@ class Resnet50KerasAccuracy(keras_benchmark.KerasBenchmark):
"""Restricts CPU memory allocation."""
"""Restricts CPU memory allocation."""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
8
FLAGS
.
num_gpus
=
8
FLAGS
.
enable_eager
=
True
FLAGS
.
data_dir
=
DATA_DIR
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_bfc_allocator'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_bfc_allocator'
)
FLAGS
.
dtype
=
'fp32'
FLAGS
.
batch_size
=
128
*
8
# 8 GPUs
FLAGS
.
batch_size
=
128
*
8
# 8 GPUs
FLAGS
.
enable_eager
=
True
# Limits CPU memory to work around memory spikes in eager mode.
# Limits CPU memory to work around memory spikes in eager mode.
# TODO(yuefengz): get rid of this test once we fix the memory issue.
# TODO(yuefengz): get rid of this test once we fix the memory issue.
os
.
environ
[
'TF_CPU_ALLOCATOR_USE_BFC'
]
=
'true'
os
.
environ
[
'TF_CPU_ALLOCATOR_USE_BFC'
]
=
'true'
...
...
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