8000 Fixed minor issue with testcase parameters · pytorch/pytorch@9e01fff · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e01fff

Browse files
committed
Fixed minor issue with testcase parameters
1 parent 8aeef66 commit 9e01fff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/functorch/test_control_flow.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,9 +3228,10 @@ def test_associative_scan_sparse_tensor(self):
32283228

32293229
@unittest.skipIf(not SM70OrLater, "triton")
32303230
@requires_cuda
3231-
def test_associative_scan_combine_fn_wrong_meta_in_combine_fn(self, device):
3231+
def test_associative_scan_combine_fn_wrong_meta_in_combine_fn(self):
3232+
device = torch.device("cuda")
32323233
B, N, C, H, W = 3, 3, 2, 3, 3
3233-
x = torch.randn(B, N, C, H, W, device=torch.device("cuda"))
3234+
x = torch.randn(B, N, C, H, W, device=device)
32343235

32353236
def fct_wrong_dtype(x, y):
32363237
return (x + y).to(torch.int64)

0 commit comments

Comments
 (0)
0