Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

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

Description

@chunqishi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions