longcw / RoIAlign.pytorch

RoIAlign & crop_and_resize for PyTorch
555 stars 103 forks source link

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

Open Lucky666123 opened 4 years ago

Lucky666123 commented 4 years ago

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?

Aegis923 commented 3 years ago

Hello, I meet the same problem , did you solve it?

zhuyalou commented 2 years ago

Hello,I meet the same problem , did you solve it?