Skip to content

Commit 06bd1fa

Browse files
committed
fix: modify some codes to profile
1 parent 3f1ab67 commit 06bd1fa

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

scripts/python_test.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
def run_tests(args):
1313
failed = []
1414
for test in [
15-
"add.py",
16-
"attention.py",
17-
"causal_softmax.py",
18-
"clip.py",
19-
"gemm.py",
20-
"mul.py",
21-
"random_sample.py",
22-
"rearrange.py",
23-
"rms_norm.py",
24-
"rope.py",
25-
"sub.py",
26-
"swiglu.py",
15+
# "add.py",
16+
# "attention.py",
17+
# "causal_softmax.py",
18+
# "clip.py",
19+
# "gemm.py",
20+
# "mul.py",
21+
# "random_sample.py",
22+
# "rearrange.py",
23+
# "rms_norm.py",
24+
# "rope.py",
25+
# "sub.py",
26+
# "swiglu.py",
2727
"silu.py",
2828
"div.py",
2929
"logical_and.py",

test/infiniop/cross_entropy_loss_backward.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def lib_cross_entropy_loss_backward():
181181
# Profiling workflow
182182
if PROFILE:
183183
# fmt: off
184-
profile_operation("PyTorch", lambda: cross_entropy_loss_backward(input.torch_tensor(), grad_logits.torch_tensor()), device, NUM_PRERUN, NUM_ITERATIONS)
184+
profile_operation("PyTorch", lambda: cross_entropy_loss_backward(probs.torch_tensor(), target.torch_tensor(), shape), device, NUM_PRERUN, NUM_ITERATIONS)
185185
profile_operation(" lib", lambda: lib_cross_entropy_loss_backward(), device, NUM_PRERUN, NUM_ITERATIONS)
186186
# fmt: on
187187
check_error(

0 commit comments

Comments
 (0)