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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add actual dtype to RuntimeError("mat1 and mat2 must have the same dtype") #105243

Closed
danielkallendorf opened this issue Jul 14, 2023 · 0 comments
Labels
actionable better-engineering Relatively self-contained tasks for better engineering contributors module: nn Related to torch.nn

Comments

@danielkallendorf
Copy link

danielkallendorf commented Jul 14, 2023

馃殌 The feature, motivation and pitch

I was doing some testing and get the error message RuntimeError("mat1 and mat2 must have the same dtype") from a linear layer. The problem is fixed, but I would have found the issue faster, if the error message told me that one mat was float32 and the other float64. I.e. RuntimeError("mat1 and mat2 must have the same dtype, but got torch.float32 and torch.float64").

Alternatives

No response

Additional context

No response

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki

@awgu awgu added module: nn Related to torch.nn better-engineering Relatively self-contained tasks for better engineering contributors actionable labels Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable better-engineering Relatively self-contained tasks for better engineering contributors module: nn Related to torch.nn
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants