We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65131d commit d548a7bCopy full SHA for d548a7b
benchmark/op_count.py
@@ -8,8 +8,8 @@ def main():
8
9
compiled_reset = sim._reset.lower(sim.data, sim.default_data, None).compile()
10
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"]
+ op_count_reset = compiled_reset.cost_analysis()["flops"]
+ op_count_step = compiled_step.cost_analysis()["flops"]
13
print(f"Op counts:\n Reset: {op_count_reset}\n Step: {op_count_step}")
14
15
0 commit comments