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
b45dd807
"examples/vscode:/vscode.git/clone" did not exist on "b25bbe642efecc6eef6d38a5d39371b5ec1f0b77"
Commit
b45dd807
authored
May 29, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 313867862
parent
d2200548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
official/benchmark/bert_pretrain_benchmark.py
official/benchmark/bert_pretrain_benchmark.py
+15
-0
No files found.
official/benchmark/bert_pretrain_benchmark.py
View file @
b45dd807
...
@@ -144,6 +144,21 @@ class BertPretrainAccuracyBenchmark(bert_benchmark_utils.BertBenchmarkBase):
...
@@ -144,6 +144,21 @@ class BertPretrainAccuracyBenchmark(bert_benchmark_utils.BertBenchmarkBase):
self
.
_run_and_report_benchmark
(
summary_path
=
summary_path
,
self
.
_run_and_report_benchmark
(
summary_path
=
summary_path
,
report_accuracy
=
True
)
report_accuracy
=
True
)
@
owner_utils
.
Owner
(
'tf-model-garden'
)
def
benchmark_perf_4x4_tpu_bf16_seq128_10k_steps
(
self
):
"""Test bert pretraining with 4x4 TPU for 10000 steps."""
self
.
_setup
()
self
.
_specify_common_flags
()
FLAGS
.
num_steps_per_epoch
=
5000
FLAGS
.
num_train_epochs
=
2
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_perf_4x4_tpu_bf16_seq128_10k_steps'
)
summary_path
=
os
.
path
.
join
(
FLAGS
.
model_dir
,
'summaries/training_summary.txt'
)
# Disable accuracy check.
self
.
_run_and_report_benchmark
(
summary_path
=
summary_path
,
report_accuracy
=
False
)
@
owner_utils
.
Owner
(
'tf-model-garden'
)
@
owner_utils
.
Owner
(
'tf-model-garden'
)
def
benchmark_perf_8x8_tpu_bf16_seq128_10k_steps
(
self
):
def
benchmark_perf_8x8_tpu_bf16_seq128_10k_steps
(
self
):
"""Test bert pretraining with 8x8 TPU for 10000 steps."""
"""Test bert pretraining with 8x8 TPU for 10000 steps."""
...
...
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