Migrating C++ Code from TensorRT 10.x to 11.x#
This page describes how to update C++ code when you migrate from TensorRT 10.x to 11.x: paired examples for strongly typed networks, explicit quantization, plugin migration, and updated runtime APIs, followed by lists of C++ APIs added and removed in 11.x.
Warning
Engine files are executable artifacts that contain compiled CUDA tactics. The deserializeCudaEngine examples in Migrating from Weak Typing to Strong Typing assume the engine file was built by you on a trusted host or received over a trusted, authenticated channel. Never deserialize an engine file from an untrusted source. Refer to Engine Deserialization and the Trust Boundary for the full trust-boundary model.
For conceptual background on strong typing, plugin V3, and other 11.x breaking changes, see Migrating from TensorRT 10.x to 11.x.
Migrating from Weak Typing to Strong Typing — paired before/after C++ examples
Removed C++ APIs and Replacements — removed C++ APIs, plugins, and replacements
- Migrating from Weak Typing to Strong Typing
- Migrating INT8 Calibration to Explicit Quantization
- Migrating Plugins from
IPluginV2DynamicExttoIPluginV3 - Migrating Weight Streaming APIs
- Migrating Memory Management APIs
- Removed C++ APIs and Replacements
- Removed C++ Plugins and Replacements
- Deprecated BERT Plugins