8000 fix test · pytorch/pytorch@40303c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40303c5

Browse files
committed
fix test
1 parent 0d04c98 commit 40303c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/inductor/test_aot_inductor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4129,7 +4129,7 @@ def forward(self, a, b, c):
41294129
so_path, code = run_and_get_cpp_code(
41304130
AOTIRunnerUtil.compile, model, example_inputs
41314131
)
4132-
lowerbound_check = "u1 >= 1" if mark_unbacked else "u0 >= 2"
4132+
lowerbound_check = "u1 >= 1" if mark_unbacked else "u0 >= 1"
41334133
FileCheck().check_count(lowerbound_check, 1).run(code)
41344134

41354135
compiled = AOTIRunnerUtil.load(self.device, so_path)

test/test_dynamic_shapes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,12 @@ def test_size_expressions(self):
432432
else:
433433
result = expand_x + expand_x
434434

435-
gt_op, _bt = shape_env.guards[-1]
435+
gt_op, _bt, is_size_obv = shape_env.guards[-1]
436436
self.assertTrue(isinstance(gt_op, sympy.core.relational.StrictGreaterThan))
437437
self.assertTrue(str(x.shape[0]), str(gt_op.args[0]))
438438
self.assertTrue(str(expand_x.shape[1]), str(x.shape[0]))
439439
self.assertTrue(str(expand_x.shape[1]), str(result.shape[0]))
440+
self.assertFalse(is_size_obv)
440441

441442
def test_floordiv_static(self):
442443
shape_env = ShapeEnv()

0 commit comments

Comments
 (0)
0