Skip to content

Commit

Permalink
Update test_ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jokeren committed Apr 21, 2024
1 parent bc85a6d commit 86f0013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ def pyg_fn():
fn = pyg_fn if engine == "pyg" else fasten_fn
fn()
flops = get_matmul_flops(tensor_slice, other)
flops = 2 * flops if phase == "backward" else flops
bytes = get_matmul_bytes(tensor_slice, other)
with proton.scope(f"random_{phase}_{engine}_{K}_{T}", metrics={"flops32": flops, "bytes": bytes}):
with proton.scope(f"random_{phase}_{engine}_{K}_{T}", metrics={"flops": flops, "bytes": bytes}):
fn()


Expand Down

0 comments on commit 86f0013

Please sign in to comment.