I want to set the batch size when building a TensorRT engine.
I am using TensorRT 7 and the python API. I am converting a ResNet50 Model in onnx format.
I want to set the batch size when building a TensorRT engine.
I am using TensorRT 7 and the python API. I am converting a ResNet50 Model in onnx format.
Copyright © 2021 Jogjafile Inc.
I wasn't able to do it in the python API. However, I have used the
trtexec
tool that comes by default with tensorrt. The tool converts onnx models to tensorrt engines.To convert a model use the following command:
For more info about
trtexec
use this GitHub page.