Solved by SplitInfinity in post #6 
              
              
                We added support for module and class type properties recently, and I think the issue here is that a previously existing property that included code incompatible with TorchScript is now failing to compile. There are two options: 

Modify the property definition so that it is TorchScript compatible.
E…