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
2be9ba5b
"tests/nn/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "2478a9ad26501b516abc56b9b329715b15d88149"
Commit
2be9ba5b
authored
May 28, 2019
by
guptapriya
Browse files
Turn dist strat off for 1 GPU benchmarks
parent
1d16f473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/transformer/v2/transformer_benchmark.py
official/transformer/v2/transformer_benchmark.py
+4
-0
No files found.
official/transformer/v2/transformer_benchmark.py
View file @
2be9ba5b
...
@@ -133,6 +133,7 @@ class TransformerBaseKerasAccuracy(TransformerBenchmark):
...
@@ -133,6 +133,7 @@ class TransformerBaseKerasAccuracy(TransformerBenchmark):
"""
"""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
1
FLAGS
.
num_gpus
=
1
FLAGS
.
distribution_strategy
=
off
FLAGS
.
data_dir
=
self
.
train_data_dir
FLAGS
.
data_dir
=
self
.
train_data_dir
FLAGS
.
vocab_file
=
self
.
vocab_file
FLAGS
.
vocab_file
=
self
.
vocab_file
# Sets values directly to avoid validation check.
# Sets values directly to avoid validation check.
...
@@ -158,6 +159,7 @@ class TransformerBaseKerasAccuracy(TransformerBenchmark):
...
@@ -158,6 +159,7 @@ class TransformerBaseKerasAccuracy(TransformerBenchmark):
"""
"""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
1
FLAGS
.
num_gpus
=
1
FLAGS
.
distribution_strategy
=
off
FLAGS
.
data_dir
=
self
.
train_data_dir
FLAGS
.
data_dir
=
self
.
train_data_dir
FLAGS
.
vocab_file
=
self
.
vocab_file
FLAGS
.
vocab_file
=
self
.
vocab_file
# Sets values directly to avoid validation check.
# Sets values directly to avoid validation check.
...
@@ -315,6 +317,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
...
@@ -315,6 +317,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
"""Benchmark 1 gpu."""
"""Benchmark 1 gpu."""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
1
FLAGS
.
num_gpus
=
1
FLAGS
.
distribution_strategy
=
off
FLAGS
.
batch_size
=
self
.
batch_per_gpu
FLAGS
.
batch_size
=
self
.
batch_per_gpu
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_1_gpu'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_1_gpu'
)
self
.
_run_and_report_benchmark
(
total_batch_size
=
FLAGS
.
batch_size
,
self
.
_run_and_report_benchmark
(
total_batch_size
=
FLAGS
.
batch_size
,
...
@@ -324,6 +327,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
...
@@ -324,6 +327,7 @@ class TransformerKerasBenchmark(TransformerBenchmark):
"""Benchmark 1 gpu."""
"""Benchmark 1 gpu."""
self
.
_setup
()
self
.
_setup
()
FLAGS
.
num_gpus
=
1
FLAGS
.
num_gpus
=
1
FLAGS
.
distribution_strategy
=
off
FLAGS
.
batch_size
=
self
.
batch_per_gpu
FLAGS
.
batch_size
=
self
.
batch_per_gpu
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_1_gpu_static_batch'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_1_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