Skip to content

Commit efc520e

Browse files
authored
Fix linter in softmax (#1003)
1 parent ad3a2a9 commit efc520e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/softmax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def check(m: int, n: int) -> None:
183183
run_example(kernels, lambda x: torch.nn.functional.softmax(x, dim=1), (x,))
184184

185185
print("\n\n=== Forward + Backward Pass Test ===")
186-
x_grad = torch.randn([m, n], device="cuda", dtype=torch.float16, requires_grad=True)
186+
x_grad = torch.randn([m, n], device=DEVICE, dtype=torch.float16, requires_grad=True)
187187
run_example(
188188
softmax_fwd_bwd,
189189
torch.nn.functional.softmax,

0 commit comments

Comments
 (0)