[Bugfix] SymIntArrayRef expected to contain concrete integers (#10170)

Signed-off-by: Bill Nell <bill@neuralmagic.com>
This commit is contained in:
bnellnm 2024-11-08 17:44:18 -05:00 committed by GitHub
parent 4f93dfe952
commit 10b67d865d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ class PiecewiseCompileInterpreter(torch.fx.Interpreter):
self.fake_mode.from_tensor(t) if isinstance(t, torch.Tensor) else t
for t in args
]
return super().run(*fake_args)
with self.fake_mode:
return super().run(*fake_args)
def call_module(self, target: torch.fx.node.Target,
args: Tuple[torch.fx.node.Argument,