torchdiffeq icon indicating copy to clipboard operation
torchdiffeq copied to clipboard

Backward Issue for Adjoint Method

Open chrisyxue opened this issue 4 years ago • 0 comments

Hello. Great library. I find one problem with it.

When I try to add losses from different time in Neural ODE to a total loss and optimize it, like L = L(x(1),y) + L(x(2),y) ... + L(x(n),y). The odeint method can achieve it, but odeint_adjoint method failed.

The specific errors are as follows: Screen Shot 2021-10-03 at 2 59 22 PM

Could you please tell me what happened in the adjoint method (adjoint.py) generally? Maybe I can help to fix it.

chrisyxue avatar Oct 03 '21 19:10 chrisyxue