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
986b0825
Commit
986b0825
authored
May 26, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
May 26, 2020
Browse files
Add init_checkpoint for nhnet benchmark.
PiperOrigin-RevId: 313205490
parent
5110d3a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
official/benchmark/nhnet_benchmark.py
official/benchmark/nhnet_benchmark.py
+2
-0
No files found.
official/benchmark/nhnet_benchmark.py
View file @
986b0825
...
@@ -32,6 +32,7 @@ from official.utils.flags import core as flags_core
...
@@ -32,6 +32,7 @@ from official.utils.flags import core as flags_core
MIN_LOSS
=
0.40
MIN_LOSS
=
0.40
MAX_LOSS
=
0.55
MAX_LOSS
=
0.55
NHNET_DATA
=
'gs://tf-perfzero-data/nhnet/v1/processed/train.tfrecord*'
NHNET_DATA
=
'gs://tf-perfzero-data/nhnet/v1/processed/train.tfrecord*'
PRETRAINED_CHECKPOINT_PATH
=
'gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A-16/bert_model.ckpt'
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
...
@@ -126,6 +127,7 @@ class NHNetAccuracyBenchmark(NHNetBenchmark):
...
@@ -126,6 +127,7 @@ class NHNetAccuracyBenchmark(NHNetBenchmark):
FLAGS
.
train_steps
=
50000
FLAGS
.
train_steps
=
50000
FLAGS
.
checkpoint_interval
=
FLAGS
.
train_steps
FLAGS
.
checkpoint_interval
=
FLAGS
.
train_steps
FLAGS
.
distribution_strategy
=
'tpu'
FLAGS
.
distribution_strategy
=
'tpu'
FLAGS
.
init_checkpoint
=
PRETRAINED_CHECKPOINT_PATH
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_accuracy_4x4_tpu_bf32_50k_steps'
)
'benchmark_accuracy_4x4_tpu_bf32_50k_steps'
)
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
...
...
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