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
d11aa330
Unverified
Commit
d11aa330
authored
Apr 19, 2019
by
Shining Sun
Committed by
GitHub
Apr 19, 2019
Browse files
Add 2-GPU benchmark for NCF (#6589)
parent
8ff9eb54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
official/recommendation/ncf_keras_benchmark.py
official/recommendation/ncf_keras_benchmark.py
+10
-0
No files found.
official/recommendation/ncf_keras_benchmark.py
View file @
d11aa330
...
@@ -113,6 +113,11 @@ class KerasNCFRealData(KerasNCFBenchmarkBase):
...
@@ -113,6 +113,11 @@ class KerasNCFRealData(KerasNCFBenchmarkBase):
self
.
_setup
()
self
.
_setup
()
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
def
benchmark_2_gpus
(
self
):
self
.
_setup
()
FLAGS
.
num_gpus
=
2
self
.
_run_and_report_benchmark
()
class
KerasNCFSyntheticData
(
KerasNCFBenchmarkBase
):
class
KerasNCFSyntheticData
(
KerasNCFBenchmarkBase
):
"""Benchmark NCF model using synthetic data."""
"""Benchmark NCF model using synthetic data."""
...
@@ -149,3 +154,8 @@ class KerasNCFSyntheticData(KerasNCFBenchmarkBase):
...
@@ -149,3 +154,8 @@ class KerasNCFSyntheticData(KerasNCFBenchmarkBase):
def
benchmark_1_gpu
(
self
):
def
benchmark_1_gpu
(
self
):
self
.
_setup
()
self
.
_setup
()
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
def
benchmark_2_gpus
(
self
):
self
.
_setup
()
FLAGS
.
num_gpus
=
2
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