Learn R Programming

torch (version 0.0.2)

torch_dot: Dot

Description

Dot

Arguments

dot(input, tensor) -> Tensor

Computes the dot product (inner product) of two tensors.

Examples

Run this code
# NOT RUN {
if (torch_is_installed()) {

torch_dot(torch_tensor(c(2, 3)), torch_tensor(c(2, 1)))
}
# }

Run the code above in your browser using DataLab