Hello,
I am trying to convert a ResNet50 based model from Pytorch to Tensorrt,
my first step is converting the model to ONNX using the torch.onnx._export() function
then converting it to TensorRT with the ONNX parser from GitHub - onnx/onnx-tensorrt: ONNX-TensorRT: TensorRT backend for ONNX
now if the Pytorch model has an x=x.view() layer the onnx converter produces Shape and Gather layers. that the Tensorrt parser cant convert.
what is the correct way to convert a network fron pytorch to Tensorrt. or is there a way to by pass this problem ?
thanks