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 https://github.com/onnx/onnx-tensorrt
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 ?