pub fn arange<D: Type, T: ArangeArgs<D>>( args: T, device: impl AsDevice, ) -> Tensor
Creates a 1-D Tensor with values from a range.
Tensor
args
arange
device
A 1-D Tensor with values from the specified range.