MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _run

Method _run

tensorflow/python/eager/benchmarks_test.py:170–176  ·  view source on GitHub ↗
(self, func, num_iters, execution_mode=None)

Source from the content-addressed store, hash-verified

168 self._num_iters_100_by_784 = 30000
169
170 def _run(self, func, num_iters, execution_mode=None):
171 total_time = run_benchmark(func, num_iters, execution_mode)
172 mean_us = total_time * 1e6 / num_iters
173 self.report_benchmark(
174 iters=num_iters,
175 wall_time=mean_us,
176 extras={"examples_per_sec": num_iters / total_time})
177
178 def benchmark_create_np_array(self):
179 func = lambda: np.array([3.0])

Calls 2

run_benchmarkFunction · 0.85
report_benchmarkMethod · 0.80

Tested by

no test coverage detected