gallenszl / CFNet

CFNet: Cascade and Fused Cost Volume for Robust Stereo Matching(CVPR2021)
MIT License
155 stars 23 forks source link

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

Open HamedRK89 opened 2 years ago

HamedRK89 commented 2 years ago

during training or robust, there is problem like this: 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) anybody knows how to solve it?