-
Notifications
You must be signed in to change notification settings - Fork 130
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
Cannot explain Shape Mismatch #120
Comments
This error is happening while solving the adjoint dynamics for your net. The key lines are 47 onwards
which are then concatenated and flattened, giving you the tensor of size Could you share (at a high level) what your |
Thanks for your quick response! It is quite hard to share my
Not sure if that helps at all, and then I call I'd have to check exactly if the flattening and concatenation would match for my architecture, but I think those numbers would make sense. Btw, if I use the normal |
Identifying what the difference
whereas
|
This is basically the issue I have been trying to work out too (referring to the 3355 difference in parameters). To your points:
Another thing I wanted to ask: I use second derivatives in my neural net. Specifically, my |
Hey, I was wondering if you had any more thoughts on this issue. I didn't have time in the last couple of weeks to work on it, but I am coming back to it now and still experiencing this mismatch in shapes. I checked the areas where you suggested the differences might come from, but they are the same at these two locations. |
I'd be happy to take a look at the model if you can share in private. To determine where the issue lies, I would only need access to the |
Hi @Zymrael I am encountering the same issue. Here is my network, along with the input shape, and how I am creating the NeuralODE:
The error message :
Semi-Complete stack trace:
|
Hi, I am currently working with the
torchdyn
package and I am getting an error that I cannot really explain:I know this error is specific to my particular code and usage of torchdyn, but mainly I am interested in why this mismatch occurs. The shape of
x0
andf0
that I input are both[8000, 3]
, so I do not understand how I can get a tensor of size(1203142)
or(1206497) .
It appears to happen in the backpropagation step, because just simply passing in values is without any errors.Do you maybe have any idea why this would occur?
The text was updated successfully, but these errors were encountered: