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
6406e830
Commit
6406e830
authored
Mar 27, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Mar 27, 2020
Browse files
Internal change
PiperOrigin-RevId: 303454523
parent
67ac8214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
official/benchmark/bert_benchmark.py
official/benchmark/bert_benchmark.py
+2
-3
No files found.
official/benchmark/bert_benchmark.py
View file @
6406e830
...
...
@@ -56,6 +56,7 @@ class BertClassifyBenchmarkBase(benchmark_utils.BertBenchmarkBase):
self
.
num_epochs
=
None
self
.
num_steps_per_epoch
=
None
self
.
tpu
=
tpu
FLAGS
.
steps_per_loop
=
50
@
flagsaver
.
flagsaver
def
_run_bert_classifier
(
self
,
callbacks
=
None
,
use_ds
=
True
):
...
...
@@ -81,8 +82,6 @@ class BertClassifyBenchmarkBase(benchmark_utils.BertBenchmarkBase):
distribution_strategy
=
'mirrored'
if
use_ds
else
'off'
,
num_gpus
=
self
.
num_gpus
)
steps_per_loop
=
50
max_seq_length
=
input_meta_data
[
'max_seq_length'
]
train_input_fn
=
run_classifier
.
get_dataset_fn
(
FLAGS
.
train_data_path
,
...
...
@@ -101,7 +100,7 @@ class BertClassifyBenchmarkBase(benchmark_utils.BertBenchmarkBase):
FLAGS
.
model_dir
,
epochs
,
steps_per_epoch
,
steps_per_loop
,
FLAGS
.
steps_per_loop
,
eval_steps
,
warmup_steps
,
FLAGS
.
learning_rate
,
...
...
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