Remove top-level DisableFuncTorch; clearing interpreter stack should work. (#122610)

Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/122610
Approved by: https://github.com/zou3519
ghstack dependencies: #122202
This commit is contained in:
Edward Z. Yang
2024-03-25 11:24:16 -04:00
committed by PyTorch MergeBot
parent f42818321b
commit 1af6fc5e03

View File

@ -1350,7 +1350,6 @@ class MetaConverter:
exit_stack.enter_context(
torch._functorch.pyfunctorch.temporarily_clear_interpreter_stack()
)
exit_stack.enter_context(torch._C._DisableFuncTorch())
r = self.meta_tensor(
t_desc,