toTensor method
Returns a Tensor from the given iterable.
Implementation
Tensor<T> toTensor(
{List<int>? shape, List<int>? strides, DataType<T>? type}) =>
Tensor<T>.fromIterable(this, shape: shape, strides: strides, type: type);
Returns a Tensor from the given iterable.
Tensor<T> toTensor(
{List<int>? shape, List<int>? strides, DataType<T>? type}) =>
Tensor<T>.fromIterable(this, shape: shape, strides: strides, type: type);