TPN icon indicating copy to clipboard operation
TPN copied to clipboard

RuntimeError: Legacy autograd function with non-static forward method is deprecated

Open Note-Liu opened this issue 4 years ago • 2 comments

RuntimeError: Legacy autograd function with non-static forward method is deprecated. Please use new-style autograd function with static forward method. (Example: https://pytorch.org/docs/stable/autograd.html#torch.autograd.Function)

Note-Liu avatar Jul 04 '21 12:07 Note-Liu

I think the error message is pretty straight forward. Just add @staticmethod...

jtd-ch avatar Aug 24 '21 04:08 jtd-ch