@@ -3,13 +3,13 @@ index 893fe24..fca0602 100644
33--- a/test/dynamo/test_misc.py
44+++ b/test/dynamo/test_misc.py
55@@ -12569,7 +12569,7 @@ def ___make_guard_fn():
6-
6+
77 # Call create_symbolic_sizes_strides_storage_offset on both of them.
88 r = main.create_symbolic_sizes_strides_storage_offset(
99- torch.randn(3, 2), ConstantSource("x")
1010+ torch.randn(3, 2).npu(), ConstantSource("x")
1111 )
12-
12+
1313 # Create a guard: size[0] == 3 (call evaluate_expr)
1414@@ -12623,7 +12623,7 @@ ShapeEnv not equal: field values don't match:
1515 def test_shape_env_equal_create_symbolic_sizes_strides_storage_offset(self):
@@ -21,7 +21,7 @@ index 893fe24..fca0602 100644
2121 self.assertExpectedRaisesInline(
2222 NotEqualError,
2323@@ -12693,10 +12693,10 @@ ShapeEnv not equal: field values don't match:
24-
24+
2525 # Call create_symbolic_sizes_strides_storage_offset on both of them.
2626 r = main.create_symbolic_sizes_strides_storage_offset(
2727- torch.randn(3, 2), ConstantSource("x")
@@ -31,10 +31,10 @@ index 893fe24..fca0602 100644
3131- torch.randn(3, 2), ConstantSource("x")
3232+ torch.randn(3, 2).npu(), ConstantSource("x")
3333 )
34-
34+
3535 # Create a guard: size[0] % 3 == 0 (only in the main ShapeEnv)
3636@@ -12733,10 +12733,10 @@ ShapeEnv not equal: field values don't match:
37-
37+
3838 # Call create_symbolic_sizes_strides_storage_offset on both of them.
3939 r = main.create_symbolic_sizes_strides_storage_offset(
4040- torch.randn(3, 2), ConstantSource("x")
@@ -44,10 +44,10 @@ index 893fe24..fca0602 100644
4444- torch.randn(3, 2), ConstantSource("x")
4545+ torch.randn(3, 2).npu(), ConstantSource("x")
4646 )
47-
47+
4848 # Create a guard: size[0] == 3 (only in the main ShapeEnv)
4949@@ -12776,10 +12776,10 @@ ShapeEnv not equal: field values don't match:
50-
50+
5151 # Call create_symbolic_sizes_strides_storage_offset on both of them.
5252 r = main.create_symbolic_sizes_strides_storage_offset(
5353- torch.randn(3, 2), ConstantSource("x")
@@ -57,5 +57,5 @@ index 893fe24..fca0602 100644
5757- torch.randn(3, 2), ConstantSource("x")
5858+ torch.randn(3, 2).npu(), ConstantSource("x")
5959 )
60-
60+
6161 # Create a guard: size[0] >= 3 (only in the main ShapeEnv)
0 commit comments