在 Tensorflow 中,Tensor 格式为 NxWxHxC 并通过网络。
Tensorflow 模型转换为 TensorRT 引擎时,Tensor 数据是如何处理的。与 Thensoflow 中的形状相同或扁平。
Flattened 表示,例如 1x3x4x3 张量
[[[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]]]
被压扁成
[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]
单个数组并处理。