Dot
Examples
if (torch_is_installed()) {
torch_dot(torch_tensor(c(2, 3)), torch_tensor(c(2, 1)))
}
#> torch_tensor
#> 7
#> [ CPUFloatType{} ]
Dot
if (torch_is_installed()) {
torch_dot(torch_tensor(c(2, 3)), torch_tensor(c(2, 1)))
}
#> torch_tensor
#> 7
#> [ CPUFloatType{} ]