TensorRT turns a trained model into an NVIDIA GPU-specific inference engine. It combines graph optimization, INT8 quantization, and memory techniques to reduce runtime cost, but the resulting engine must match the hardware where it will run. section 6.1.1
A practical TensorRT workflow typically involves:
- Loading a PyTorch model and representative input, then tracing it into TorchScript so its operations can be optimized. section 6.1.1
- Defining static or dynamic input shapes and datatypes in torch_tensorrt before compilation. section 6.1.1
