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
480d2630
"vscode:/vscode.git/clone" did not exist on "a450cf81c11d206983f209586f38db06e8df2801"
Unverified
Commit
480d2630
authored
Jul 30, 2019
by
Igor
Committed by
GitHub
Jul 30, 2019
Browse files
Add 8 GPUs force_v2_in_keras_compile runs for NCF. (#7334)
parent
ff21bff0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
official/recommendation/ncf_keras_benchmark.py
official/recommendation/ncf_keras_benchmark.py
+20
-0
No files found.
official/recommendation/ncf_keras_benchmark.py
View file @
480d2630
...
...
@@ -194,6 +194,13 @@ class NCFKerasAccuracy(NCFKerasBenchmarkBase):
FLAGS
.
num_gpus
=
2
self
.
_run_and_report_benchmark
()
def
benchmark_2_gpus_early_stop_force_V2
(
self
):
self
.
_setup
()
FLAGS
.
early_stopping
=
True
FLAGS
.
num_gpus
=
2
FLAGS
.
force_v2_in_keras_compile
=
True
self
.
_run_and_report_benchmark
()
def
benchmark_2_gpus_ctl_early_stop
(
self
):
"""NCF with custom training loop. Works only in TF 2.0."""
self
.
_setup
()
...
...
@@ -274,6 +281,19 @@ class NCFKerasAccuracy(NCFKerasBenchmarkBase):
FLAGS
.
epsilon
=
1e-8
self
.
_run_and_report_benchmark_mlperf_like
()
def
benchmark_8_gpu_force_v2_mlperf_like
(
self
):
"""8 GPU using keras fit/compile V2 codepath."""
self
.
_setup
()
FLAGS
.
num_gpus
=
8
FLAGS
.
train_epochs
=
17
FLAGS
.
batch_size
=
1048576
FLAGS
.
learning_rate
=
0.0045
FLAGS
.
beta1
=
0.25
FLAGS
.
beta2
=
0.5
FLAGS
.
epsilon
=
1e-8
FLAGS
.
force_v2_in_keras_compile
=
True
self
.
_run_and_report_benchmark_mlperf_like
()
def
benchmark_xla_8_gpu_mlperf_like
(
self
):
"""8 GPU using keras fit/compile with XLA."""
self
.
_setup
()
...
...
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