complex support ?
TypeError: `y0` must be a floating point Tensor but is a torch.ComplexDoubleTensor
Until PyTorch's support for complex numbers comes out of beta, it probably won't be added to the core library.
You can in the mean time represent complex tensors with a real tensor twice as big. If your ODE needs complex support, view_as_complex and view_as_real should allow you to use it with torchdiffeq.
Now that PyTorch does support complex numbers, is there a straightforward way to adapt the ODE solvers to take complex input? The _assert_floating function called by _check_inputs will raise an error when trying complex tensors, by bypassing or altering these checks will the complex supported Pytorch (version 1.8.0 and higher) be able to compute the gradients?
I think that this is resolved by #219
I just ran into the same issue and I did pip install git+https://github.com/rtqichen/torchdiffeq, so I think that #219 does not solve this.
Do you have an MWE?