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
3bb5dd6c
Commit
3bb5dd6c
authored
May 28, 2019
by
guptapriya
Browse files
fix num_gpus in benchmark
parent
b5a69819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/transformer/v2/transformer_benchmark.py
official/transformer/v2/transformer_benchmark.py
+1
-1
No files found.
official/transformer/v2/transformer_benchmark.py
View file @
3bb5dd6c
...
@@ -347,7 +347,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
...
@@ -347,7 +347,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
def
benchmark_8_gpu_static_batch
(
self
):
def
benchmark_8_gpu_static_batch
(
self
):
"""Benchmark 8 gpu."""
"""Benchmark 8 gpu."""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
1
FLAGS
.
num_gpus
=
8
FLAGS
.
batch_size
=
self
.
batch_per_gpu
*
8
FLAGS
.
batch_size
=
self
.
batch_per_gpu
*
8
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_static_batch'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_static_batch'
)
# TODO(guptapriya): Add max_length
# TODO(guptapriya): Add max_length
...
...
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