Skip to content

Commit

Permalink
Add 2-GPU benchmark for NCF (tensorflow#6589)
Browse files Browse the repository at this point in the history
  • Loading branch information
seemuch authored Apr 20, 2019
1 parent 8ff9eb5 commit d11aa33
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions official/recommendation/ncf_keras_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ def benchmark_1_gpu(self):
self._setup()
self._run_and_report_benchmark()

def benchmark_2_gpus(self):
self._setup()
FLAGS.num_gpus = 2
self._run_and_report_benchmark()


class KerasNCFSyntheticData(KerasNCFBenchmarkBase):
"""Benchmark NCF model using synthetic data."""
Expand Down Expand Up @@ -149,3 +154,8 @@ def _extract_benchmark_report_extras(self, stats):
def benchmark_1_gpu(self):
self._setup()
self._run_and_report_benchmark()

def benchmark_2_gpus(self):
self._setup()
FLAGS.num_gpus = 2
self._run_and_report_benchmark()

0 comments on commit d11aa33

Please sign in to comment.