Handle size/etc accessors in FakeTensor, support accessing symbolic types from toInt/etc in IValue (#124760)

Fixes https://github.com/pytorch/pytorch/issues/122772

Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/124760
Approved by: https://github.com/albanD, https://github.com/eellison
This commit is contained in:
Edward Z. Yang
2024-04-24 16:29:37 -04:00
committed by PyTorch MergeBot
parent 9bd6e93a04
commit 0d58aeb73a
10 changed files with 37 additions and 25 deletions

View File

@ -5598,7 +5598,7 @@ a")
g = parse_ir(graph_str)
m = self.createFunctionFromGraph(g)
self.getExportImportCopy(m)
with self.assertRaisesRegex(RuntimeError, "isInt"):
with self.assertRaisesRegex(RuntimeError, "expected int"):
m()