mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-03 15:35:04 +08:00
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:
committed by
PyTorch MergeBot
parent
ef2586422c
commit
28cb3141e8
@ -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()(
|
||||
|
||||
Reference in New Issue
Block a user