Skip to content

Commit

Permalink
Update benchmark_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjscience committed Aug 10, 2020
1 parent 13db82f commit a43e65b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/benchmarks/benchmark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,12 +699,8 @@ def run_forward():
out.wait_to_read()

timeit.repeat(run_forward, repeat=1, number=3)
# mx_profiler.set_state('run')
# run_forward()
# mx_profiler.set_state('stop')
# print(mx_profiler.dumps(reset=True))
runtimes = timeit.repeat(run_forward, repeat=self._repeat, number=3)

mxnet.npx.waitall()
# Profile memory
if self._use_gpu:
nvml.nvmlInit()
Expand Down

0 comments on commit a43e65b

Please sign in to comment.