TensorRT is NVIDIA's dedicated inference optimizer and runtime: it takes an already-trained model and compiles that model ahead of time into a serialized engine specifically optimized to run as fast as possible on one particular specific class of target GPU hardware. This ahead-of-time, hardware-target-specific compilation approach is what distinguishes TensorRT from directly running a model's raw inference using a general-purpose training framework, since that ahead-of-time compilation step lets TensorRT apply hardware-specific optimizations, kernel selection and layer fusion among several common examples, that a general-purpose training framework's own more generic inference path would simply never actually apply.