The blas libraries that do matrix multiplication only support floating point numbers, so this is intentional. The error message could be better, though, I’ve opened an issue here for that: https://github.com/pytorch/pytorch/issues/4157 7 .