Skip to content

Commit 6b02e60

Browse files
ZhiweiYan-96pytorchmergebot
authored andcommitted
[Intel GPU] Use user-friendly err msg in mm (pytorch#151655)
Pull Request resolved: pytorch#151655 Approved by: https://github.com/EikanWang
1 parent 7fdd754 commit 6b02e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aten/src/ATen/native/mkldnn/xpu/Blas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Tensor& mm_out(const Tensor& self, const Tensor& mat2, Tensor& result) {
154154
")");
155155
TORCH_CHECK(
156156
self.dtype() == mat2.dtype(),
157-
"expected self and mat2 to have the same dtype, but got: ",
157+
"expected mat1 and mat2 to have the same dtype, but got: ",
158158
self.dtype(),
159159
" != ",
160160
mat2.dtype())

0 commit comments

Comments
 (0)