Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform one integration step #248

Open
JackCaster opened this issue Mar 10, 2024 · 2 comments
Open

Perform one integration step #248

JackCaster opened this issue Mar 10, 2024 · 2 comments

Comments

@JackCaster
Copy link

I am looking forward to using some of the solvers in this repo. Thank you for your work!

I am porting a code from Scipy to Pytorch. I have an ODE with time-varying coefficients so I cannot solve the equation in one go, but I'd need to perform a step-by-step integration. In Scipy, I am using the RK45's step method. Is there something equivalent in torchdiffeq I could use?

@rtqichen
Copy link
Owner

The current API isn't designed with this mind unfortunately. The only way to implement it is to use the internal functions. The equivalent to the step method is the _advance method: https://github.com/rtqichen/torchdiffeq/blob/master/torchdiffeq/_impl/solvers.py#L34.

@JincanDeng
Copy link

The current API isn't designed with this mind unfortunately. The only way to implement it is to use the internal functions. The equivalent to the step method is the _advance method: https://github.com/rtqichen/torchdiffeq/blob/master/torchdiffeq/_impl/solvers.py#L34.

It seems that the _advance method has not been implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants