Inplace version of flatten API, the output Tensor will be inplaced with input x. Please refer to api_tensor_flatten.
flatten
x