torchdiffeq icon indicating copy to clipboard operation
torchdiffeq copied to clipboard

Stepping through backward pass of adjoint

Open gatb17 opened this issue 5 years ago • 2 comments

Hello,

I would like to step through the code for the backward pass of the adjoint solver to gain a better understanding.

After adding the 'adjoint flag', I am able to step through the forward pass but not the backward one.

Would you have any idea why that is the case?

I am using pycharm. Thank you very much for your help

gatb17 avatar Jan 11 '21 16:01 gatb17

Unfortunately, I'm not sure how PyTorch's custom autograd functions works with a debugger either.. I use the cavemen method of prints and logs to debug. Maybe this can help: https://discuss.pytorch.org/t/custom-backward-breakpoint-doesnt-get-hit/6473/6

rtqichen avatar Jan 18 '21 21:01 rtqichen

No problem, that is great. Thank you!

gatb17 avatar Jan 26 '21 19:01 gatb17