Skip to content
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

Unhelpful error message for model having single input and multiple outputs #195

Open
harryknee opened this issue Jul 25, 2023 · 0 comments

Comments

@harryknee
Copy link

I have an encoder model that takes one input and returns two values as outputs, only one is used for calculating loss. When I create a summary, the two outputs are concatenated and causes a shape issue.

E.g. a model returns both the encoded input and an intermediate representation of size [a, b, c], the torch summary would assume this to be [2, a , b, c].

It would be nice to be able to have an error message that warns user that if the model inputs and outputs size is not matching it can lead to undefined behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant