
Last chance! 50% off unlimited learning
Sale ends in
Mm
torch_mm(self, mat2)
(Tensor) the first matrix to be multiplied
(Tensor) the second matrix to be multiplied
Performs a matrix multiplication of the matrices input
and mat2
.
If input
is a mat2
is a
out
will be a
# NOT RUN {
if (torch_is_installed()) {
mat1 = torch_randn(c(2, 3))
mat2 = torch_randn(c(3, 3))
torch_mm(mat1, mat2)
}
# }
Run the code above in your browser using DataLab