2.4. Thread Safety
The TensorRT builder may only be used by one thread at a time. If you need to run multiple builds simultaneously, you will need to create multiple builders.
参考:https://docs.nvidia.com/deeplearning/tensorrt/best-practices/index.html