flatten
Flattens a tensor into a vector (a tensor with rank 1).
Returns a tensor with dimensions startDim, endDim (inclusive range) flattened.
If startDim is greater than endDim, returns the input tensor.
Flattens a tensor into a vector (a tensor with rank 1).
Returns a tensor with dimensions startDim, endDim (inclusive range) flattened.
If startDim is greater than endDim, returns the input tensor.