[jit] Calling torch.jit.script
on @staticmethod
s which in turn call other @staticmethod
s results in a TypeError
#32365
Labels
oncall: jit
Add this issue/PR to JIT oncall triage queue
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃悰 Bug
Calling
torch.jit.script
on@staticmethod
s that in turn call other@staticmethod
s results in an internal error.To Reproduce
Results in
TypeError: <module '__main__'> is a built-in class
.Environment
Google Colab with a fresh GPU runtime on which
!pip install -q torch==1.4.0
has been run.This is a spin off of #32300 at @driazati's request.
cc @suo
The text was updated successfully, but these errors were encountered: