flatten

final Tensor flatten()

Reshape to a 1-dimensional tensor.

Return

1-dimensional tensor.