flatten method

Tensor<T> flatten()

Return the tensor collapsed into one dimension.

Implementation

Tensor<T> flatten() => reshape([length]);