yjxiong / tsn-pytorch

Temporal Segment Networks (TSN) in PyTorch
BSD 2-Clause "Simplified" License
1.07k stars 308 forks source link

RuntimeError: Legacy autograd function #126

Open nasaweimao opened 3 years ago

nasaweimao commented 3 years ago

当我用pytorch1.7版本的gpu来跑这个程序的时候,老报下面的错误,请问怎么解决? File "/data/miniconda3/lib/python3.7/site-packages/torch/autograd/function.py", line 160, in call

45 |   | "Legacy autograd function with non-static forward method is deprecated. " 46 |   | 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)

mbilalshaikh commented 3 years ago

same error with me during feature extraction.