R/gen-namespace-docs.R
R/gen-namespace-examples.R
R/gen-namespace.R
torch_dot.Rd
Dot
torch_dot(self, tensor)
the input tensor
the other input tensor
This function does not broadcast .
Computes the dot product (inner product) of two tensors.
if (torch_is_installed()) { torch_dot(torch_tensor(c(2, 3)), torch_tensor(c(2, 1))) } #> torch_tensor #> 7 #> [ CPUFloatType{} ]