Skip to content

Commit 1b32ddc

Browse files
abhudevkulinseth
authored andcommitted
Raise error for dot int64 input (#130)
1 parent 0105c9b commit 1b32ddc

File tree

1 file changed

+3
-0
lines changed
  • aten/src/ATen/native/mps/operations

1 file changed

+3
-0
lines changed

aten/src/ATen/native/mps/operations/Blas.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ Tensor dot_mps(
2121
const Tensor &self,
2222
const Tensor &other)
2323
{
24+
25+
TORCH_CHECK(self.scalar_type() != ScalarType::Long, "MPS: dot op doesn't support int64 input")
26+
2427
using namespace mps;
2528
auto output = at::native::empty_mps({}, self.scalar_type(), c10::nullopt, kMPS, c10::nullopt, c10::nullopt);
2629

0 commit comments

Comments
 (0)