Skip to content
Discussion options

You must be logged in to vote

Are you sure that data.y is of correct type? Since you are using torch.nn.functional.mse_loss, the dtype of out and data.y have to match. Can you confirm that this is the case?

You can also use torch.autograd.detect_anomaly to debug this error further.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anthonysirico
Comment options

Answer selected by anthonysirico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants