Skip to content

Commit

Permalink
fixed possible DivByZero bug in benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
nopeslide committed Mar 9, 2021
1 parent d464b9e commit 8b6f9ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def benchmark_model(id, path, io, n_inputs, n_outputs, n_runs=1):
elif result == 0:
print("[Warning] Measured time is 0. Perhaps trying to measure a very small time."+
"There is a known issue with time library in Windows.")
model_times.append(result)
else:
raise Exception("The output of the model doesn't match the expected")

Expand Down

0 comments on commit 8b6f9ed

Please sign in to comment.