Skip to content

Commit d548a7b

Browse files
committed
Fix op_count benchmark
1 parent c65131d commit d548a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/op_count.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def main():
88

99
compiled_reset = sim._reset.lower(sim.data, sim.default_data, None).compile()
1010
compiled_step = sim._step.lower(sim.data, 1).compile()
11-
op_count_reset = compiled_reset.cost_analysis()[0]["flops"]
12-
op_count_step = compiled_step.cost_analysis()[0]["flops"]
11+
op_count_reset = compiled_reset.cost_analysis()["flops"]
12+
op_count_step = compiled_step.cost_analysis()["flops"]
1313
print(f"Op counts:\n Reset: {op_count_reset}\n Step: {op_count_step}")
1414

1515

0 commit comments

Comments
 (0)