flatten

Tensor4.flatten(self: object) object

As for numpy.ndarray