torch_dot {torch} | R Documentation |
Dot
torch_dot(self, tensor)
self |
the input tensor |
tensor |
the other input tensor |
Computes the dot product (inner product) of two tensors.
This function does not broadcast .
if (torch_is_installed()) {
torch_dot(torch_tensor(c(2, 3)), torch_tensor(c(2, 1)))
}