mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
9bd6e93a04
commit
0d58aeb73a
@ -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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user