torch_dot: Dot

View source: R/gen-namespace.R

torch_dotR Documentation

Dot

Description

Dot

Usage

torch_dot(self, tensor)

Arguments

self

the input tensor

tensor

the other input tensor

dot(input, tensor) -> Tensor

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

Note

This function does not broadcast .

Examples

if (torch_is_installed()) {

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

torch documentation built on June 7, 2023, 6:19 p.m.