Remove temporary export skip hack (#92160)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/92160
Approved by: https://github.com/SherlockNoMad, https://github.com/ezyang
This commit is contained in:
Michael Voznesensky
2023-01-19 01:19:52 +00:00
committed by PyTorch MergeBot
parent ef2586422c
commit 28cb3141e8

View File

@ -1739,7 +1739,7 @@ class InstructionTranslator(InstructionTranslatorBase):
return cg.get_instructions()
def RETURN_VALUE(self, inst):
if self.output.count_calls() == 0 and not self.export:
if self.output.count_calls() == 0:
raise exc.SkipFrame()
self.instruction_pointer = None
_step_logger()(