8000 Update on "[aoti] fix corner case in unbacked replacements for atomic… · pytorch/pytorch@c228510 · GitHub
[go: up one dir, main page]

Skip to content

Commit c228510

Browse files
committed
Update on "[aoti] fix corner case in unbacked replacements for atomically_apply_size_hint"
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov [ghstack-poisoned]
1 parent 05e84fb commit c228510

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/inductor/test_aot_inductor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,9 @@ def forward(self, values, repeats, mask, embeddings, x, z, scalar):
13221322
self.check_model(Repro(), example_inputs, dynamic_shapes=spec)
13231323

13241324
def test_size_with_unbacked_add_expr_transitive(self):
1325-
# We'll have torch._check(expr1, expr2) + torch._check(expr2, unbacked)
1325+
# Edge case with torch._check(expr1, expr2) + torch._check(expr2, unbacked).
1326+
# When generating example input sizes for autotuning, it should coalesce
1327+
# expr1, expr2, unbacked into a single size.
13261328
if self.device != GPU_TYPE:
13271329
raise unittest.SkipTest("requires GPU")
13281330

@@ -1377,6 +1379,8 @@ def forward(self, values, repeats, mask, embeddings, x, y, z, lst):
13771379

13781380
@config.patch({"unbacked_symint_fallback": 1024})
13791381
def test_size_with_unbacked_add_and_mul_expr(self):
1382+
# Edge case with torch._check(add_expr, mul_expr). When generating example
1383+
# input sizes for autotuning, make sure they coalesce into a single size.
13801384
if self.device != GPU_TYPE:
13811385
raise unittest.SkipTest("requires GPU")
13821386

0 commit comments

Comments
 (0)
0