Closed racso10 closed 10 months ago
It is a bug that has been solved now, try git pull. Thank you for your proposal.
Thanks a lot! But it still has some errors in backward-propagation.
Traceback (most recent call last):
File "/Forward-Warp-master/test/test_new.py", line 36, in <module>
loss.backward()
File "/data/anaconda3/envs/pytorch1.4/lib/python3.6/site-packages/torch/tensor.py", line 195, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/data/anaconda3/envs/pytorch1.4/lib/python3.6/site-packages/torch/autograd/__init__.py", line 99, in backward
allow_unreachable=True) # allow_unreachable flag
RuntimeError: function forward_warp_functionBackward returned an incorrect number of gradients (expected 3, got 2)
Hi, it should be fixed now.
Thanks for providing the code of forward warping operation in pytorch. But I get some errors when I add the
forward_warp
to ann.Module
. The error occurs in the forward-propagation. Here is the code and the error information.Moreover, if
with torch.no_grad()
, the code works. Theflow
is calculated by CNN, does it causes the problem?The error is occur both in pytorch1.4 and pytorch1.7, with cuda 10.1 and python 3.6.