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

sdeint_adjoint for f_and_g_prod type SDE, how to set parameter? #146

Open
chunqishi opened this issue May 9, 2024 · 0 comments
Open

sdeint_adjoint for f_and_g_prod type SDE, how to set parameter? #146

chunqishi opened this issue May 9, 2024 · 0 comments

Comments

@chunqishi
Copy link

I got the following errors:

File ".venv\lib\site-packages\torchsde_core\adjoint.py", line 271, in sdeint_adjoint
extra_solver_state = solver.init_extra_solver_state(ts[0], y0)
File ".venv\lib\site-packages\torchsde_core\methods\reversible_heun.py", line 59, in init_extra_solver_state
return self.sde.f_and_g(t0, y0) + (y0,)
File ".venv\lib\site-packages\torchsde_core\base_sde.py", line 92, in f_and_g_default
return self.f(t, y), self.g(t, y)
File ".venv\lib\site-packages\torchsde_core\base_sde.py", line 85, in g_default
raise RuntimeError("Method g has not been provided, but is required for this method.")
RuntimeError: Method g has not been provided, but is required for this method.

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

1 participant