pub fn tensor( values: &Array, shape: Option<&Array>, dtype: Option<&str>, ) -> Tensor
Creates a Tensor with the provided values, shape and dtype.