Adds two Tensor
objects.
Creates a 1-D Tensor
with values from a range.
Divides two Tensor
objects.
Creates a Tensor
from an array of values.
Creates a Tensor
from a safetensors::TensorView
.
Creates a Tensor
filled with a specified value.
Creates a Tensor
filled with a specified value, with the same shape, data type and device as another Tensor
.
Multiplies two Tensor
objects.
Creates a Tensor
filled with ones.
Creates a Tensor
filled with ones, with the same shape, data type and device as another Tensor
.
Creates a Tensor
filled with random values from a uniform distribution on the interval [0, 1).
Creates a Tensor
filled with random values from a normal distribution with mean 0 and variance 1.
Subtracts two Tensor
objects.
Creates a Tensor
filled with zeros.
Creates a Tensor
filled with zeros, with the same shape, data type and device as another Tensor
.