pub fn from_array<T: ElemType>( data: impl Into<Vec<T>> + Debug, shape: impl Shape, device: impl AsDevice ) -> Tensor
Creates a Tensor from an array of values.
Tensor
data
shape
device
A Tensor created from the array of values.