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
bde0f751
Commit
bde0f751
authored
Jan 31, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 292583083
parent
d7e4cc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
official/benchmark/bert_squad_benchmark.py
official/benchmark/bert_squad_benchmark.py
+13
-0
No files found.
official/benchmark/bert_squad_benchmark.py
View file @
bde0f751
...
@@ -311,6 +311,19 @@ class BertSquadBenchmarkReal(BertSquadBenchmarkBase):
...
@@ -311,6 +311,19 @@ class BertSquadBenchmarkReal(BertSquadBenchmarkBase):
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
def
benchmark_8_gpu_xla_fp16
(
self
):
"""Tests BERT SQuAD model performance with 8 GPUs with XLA."""
self
.
_setup
()
self
.
num_gpus
=
8
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_squad_fp16'
)
FLAGS
.
train_batch_size
=
32
FLAGS
.
enable_xla
=
True
FLAGS
.
dtype
=
'fp16'
FLAGS
.
loss_scale
=
'dynamic'
self
.
_run_and_report_benchmark
()
def
benchmark_1_gpu_amp
(
self
):
def
benchmark_1_gpu_amp
(
self
):
"""Tests BERT SQuAD model performance with 1 GPU with automatic mixed precision."""
"""Tests BERT SQuAD model performance with 1 GPU with automatic mixed precision."""
...
...
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