-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
example_input_array dtype #2286
Comments
Hi, I don't understand. Does it throw an error or does it display nothing? Could you clarify? |
Hi, currently the model is run with |
okay I see, so we should not change the dtype as given by example_input_array. |
as a workaround until it is fixed, cast your input to int before feeding to the embedding layer, or don't use the example_input_array. |
Currently assumed that example_input_array dtype to be equal to model dtype. This is not necessarily correct - e.g. if input is a vector of INT.
https://github.com/PyTorchLightning/pytorch-lightning/blob/7dc58bd286b1e81ca4d293f05bddff5e93361020/pytorch_lightning/core/memory.py#L192
The text was updated successfully, but these errors were encountered: