Skip to content

Commit 82d8aca

Browse files
authored
Merge branch 'main' into slogdet
2 parents 0bed2ec + ef1109b commit 82d8aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/xpu/test_torch_xpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8354,7 +8354,7 @@ def test_unflatten(self):
83548354
):
83558355
torch.tensor([1]).unflatten(0, [2, 2])
83568356
with self.assertRaisesRegex(
8357-
IndexError, r"Dimension specified as 0 but tensor has no dimensions"
8357+
RuntimeError, r".*Dimension specified as 0 but tensor has no dimensions.*"
83588358
):
83598359
torch.tensor(1).unflatten(0, [0])
83608360
with self.assertRaisesRegex(

0 commit comments

Comments
 (0)