flatten method

Tensor flatten()

Flatten to a 1D tensor.

Implementation

Tensor flatten() => reshape([size]);