Skip to content

Commit

Permalink
Fix op_count benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
amacati committed Feb 19, 2025
1 parent c65131d commit d548a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/op_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def main():

compiled_reset = sim._reset.lower(sim.data, sim.default_data, None).compile()
compiled_step = sim._step.lower(sim.data, 1).compile()
op_count_reset = compiled_reset.cost_analysis()[0]["flops"]
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"]
print(f"Op counts:\n Reset: {op_count_reset}\n Step: {op_count_step}")


Expand Down

0 comments on commit d548a7b

Please sign in to comment.