Converting a NHWC Tensorflow 2.8 model to NCHW ONNX model for later generating Tensor RT file
I’ve got a nice model with input [1,H,W,C], which works pretty well. Now, I want to convert it to ONNX for later using trtgen ang getting the final file for RT inferencing. (Yes, I know there’s another way to tranform but that’s the way I leant)
The problem is I never before realized TensorRT excepts channel first for properly working…
Is there any fast solution a can use to adapt my initial model to that format or, shall I train again the model with the desired format?
Windows 10
TensorRT Version: 7.2
GPU Type: RTX 3035 Ti
Nvidia Driver Version: 528.24
CUDA Version: 11.2
CUDNN Version:
Operating System + Version:
Python Version (if applicable):
TensorFlow Version (if applicable): 2.8
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):