ssd.pytorch
ssd.pytorch copied to clipboard
Use new-style autograd function with static forwarding method
Hi guys, I'm trying this code on torch==1.6.0
but when I'm running live.py
I get 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)
Of course this doesn't happen if I'm using torch==1.2.0
or below.
If you have time I suggest to use static methods for autograd forwarding as the non static is deprecated.
@vladoski Hi dude, I have fixed what you said, but i don't know how to show it....
@ayukat1016 PyTorch1.5.0 support new-style autograd function
Try 👆 in #444 It works well with Pytorch1.7.0