-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Training a UODE and get error Cannot convert
an object of type Nothing to an object of type Float32
#703
Comments
I was continuing to work on this problem. I tried to step through the error and thought this might be related to the AD backend. But it seems like even with ForwardDiff, the error still occurs.
|
Okay, this problems seems to also happen in the demo Here is the code that I ran, and then the error message. It is identical to the error message I received when running my code in the OP.
Here is the error message.
|
@AlCap23 hopefully you can see this reference. Here is the issue that I mentioned to Chris. For some reason the |
The problem seems to be with the choice of AD backend. I had to manually set the AD backend to Here is the updated code.
This is a change from the original code. I am waiting to hear back from Chris and Julius to see if they want me to just adjust the UODE repo code, or if they want to dive in deeper to figure out what is the cause of the problem with Zygote and Tracker, ... |
What's the reason for mixing Float64 and Float32? What happens if you make it all the same type? |
@ChrisRackauckas , @AlCap23 and I have been looking at this. So far the error seems to be coming from Julius thinks that one of the dispatches is not working as expected. I can try and see what happens if we explicitly set everything to Float32 or Float64. We are continuing to trace the problem, but I will update the issue as we figure it out. |
Okay, I'm travelling and a bit behind so I'm going to archive this assuming @AlCap23 has it under control, but if that's not the case just ping me. |
What's the current status here? |
Have have not found the root of the problem yet. We were thinking it has something to do with the sequence with which the AD rules are being applied or maybe like the type that is getting identified for dispatch. I was wondering if perhaps @avik-pal might help us figure this out, as he seems to have encountered a similar error last week. So I figured I would ping him. |
Hello. I was training a simple UODE and am encountering this error when running
sciml_train()
. The error seems to be somewhere in the interface betweenDiffEqFlux
andGalacticOptim
. I have the specific error message, and some code to replicate the problem.Here is the error message text:
Here is the code to replicate the problem. I hardcoded some data so that anyone can
precisely replicate the issue. The code itself is based on some of the examples in the
Universal ODE github repo.
The text was updated successfully, but these errors were encountered: