RoIAlign.pytorch icon indicating copy to clipboard operation
RoIAlign.pytorch copied to clipboard

‘’Legacy autograd function with non-static forward method is deprecated.” on Pytorch 1.5

Open Lucky666123 opened this issue 4 years ago • 2 comments

When I use this function on Pytorch 1.5, there is an error like that :

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

But there exists @staticmethod before forward and backward function. Did anyone encounter this problem?How to solve it?

Lucky666123 avatar Jul 05 '20 03:07 Lucky666123