github.com
  
  
    pytorch/pytorch/blob/master/torch/jit/annotations.py 26
import re
import sys
import ast
import inspect
import torch
from .._jit_internal import List, Tuple, BroadcastingList1, BroadcastingList2, BroadcastingList3, is_tuple
from torch._C import DynamicType, TupleType, FloatType, IntType
from textwrap import dedent


PY35 = sys.version_info >= (3, 5)


class Module(object):
    def __init__(self, name, members):
        self.name = name
        self.members = members

    def __getattr__(self, name):
        try:


  This file has been truncated. show original

  
  
    
    
  
  


The error encountered is from this part of the pytorch script. So looking at this might help you. In cases like this, the error mainly depends on the script so it would be helpful if you acn upload the script