We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c663e88 commit b57cdc6Copy full SHA for b57cdc6
benchmarks/benchmarking.py
@@ -448,12 +448,12 @@ def run_benchmarks(
448
results_entry["traced_memory_final_in_bytes"] = current_size
449
results_entry["traced_memory_peak_in_bytes"] = peak_size
450
if reference_output is not None and output is not None:
451
- results_entry["max_abs_error"] = abs(
452
- reference_output - output
453
- ).max()
454
- results_entry["mean_abs_error"] = abs(
455
456
- ).mean()
+ results_entry["max_abs_error"] = float(
+ abs(reference_output - output).max()
+ )
+ results_entry["mean_abs_error"] = float(
+ abs(reference_output - output).mean()
457
run_times = [
458
time / number_runs
459
for time in timeit.repeat(
0 commit comments