Deformable-Convolution-V2-PyTorch icon indicating copy to clipboard operation
Deformable-Convolution-V2-PyTorch copied to clipboard

RuntimeError: Backward is not reentrant

Open FCInter opened this issue 4 years ago • 4 comments

I compile the project and run the test.py. I got the error

RuntimeError: Backward is not reentrant, i.e., running backward with same input and grad_output multiple times gives different values, although analytical gradient matches numerical gradient

It seems the gradient check is not passed. I'm using python 3.6 with pytorch 1.0.0.

What's wrong with it?

FCInter avatar Aug 12 '20 03:08 FCInter

Try pytorch 0.4.1?

chengdazhi avatar Aug 12 '20 03:08 chengdazhi

@chengdazhi Sorry limited by environment, I can only use 1.0.0. What if I ignore this error and directly use it in my network? Will this be a problem?

FCInter avatar Aug 12 '20 07:08 FCInter

I suggested you use the dcn operators in mmdetection repo, they support pytorch 1.0.0+

chengdazhi avatar Aug 12 '20 16:08 chengdazhi

@FCInter I met this issue too, did you solve it?

Andyflying avatar Sep 24 '20 11:09 Andyflying