google-research / torchsde

Differentiable SDE solvers with GPU support and efficient sensitivity analysis.
Apache License 2.0
1.52k stars 195 forks source link

[On dev branch] Tuple rewrite #37

Closed lxuechen closed 3 years ago

lxuechen commented 3 years ago

Contents in this PR:

The rate diagnostics files run, but I haven't been able to obtain rates due to #36. I need to run these when this is fixed. All tests pass.

Overall, this PR should also make adding dg_ga_jvp for the adjoint easier.

patrick-kidger commented 3 years ago

Also, tests/__init__.pyc shouldn't be included in the commit.

patrick-kidger commented 3 years ago

Overall, things are looking so much cleaner now. These changes make me very happy.

patrick-kidger commented 3 years ago

Just spotted, both sdeint and its adjoint have the docstring for names still specifying the possibility of prior drift.

lxuechen commented 3 years ago

Just spotted, both sdeint and its adjoint have the docstring for names still specifying the possibility of prior drift.

Done.

patrick-kidger commented 3 years ago

This PR looks good to me. I've not hit the merge button as I assume the plan is to merge #40 first, so that the diagnostics can be run.

lxuechen commented 3 years ago

Thanks for the reviews @patrick-kidger! All rates preserved after running the diagnostics. Merging now.