How TensorRT process data?

In Tensorflow, Tensor format is NxWxHxC and go through the network.

When Tensorflow model is converted to TensorRT engine, how Tensor data is processed.
Same shape as in Thensoflow or flattened.

Flattened means, for example, 1x3x4x3 Tensor

[[[1,2,3],[4,5,6],[7,8,9],[10,11,12]],
     [[1,2,3],[4,5,6],[7,8,9],[10,11,12]],
     [[1,2,3],[4,5,6],[7,8,9],[10,11,12]]]

is flattened into

[1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11,12]

single array and processed.