trt-strong-typing-migration

Installation
SKILL.md

Migrate Weakly-Typed to Strongly-Typed TensorRT Build

Strong typing is the recommended build mode for TensorRT 11.x; weak typing was deprecated in 10.12 and is scheduled for removal. This skill migrates a weakly-typed build flow to a strongly-typed equivalent, one path per entry point (Python network, trtexec, C++ builder), plus the ModelOpt AutoCast pre-step needed when the source is an ONNX file that must run in mixed precision.

Version behavior. On TensorRT 11.x strong typing is unconditional — every network is strongly typed, the kSTRONGLY_TYPED creation flag is accepted but ignored, and trtexec --stronglyTyped is a no-op (default-on). On 10.12–10.x you opt in explicitly via that flag / --stronglyTyped. Setting it is therefore always safe: required on 10.x, harmless on 11.x. Either way the migration is the same — remove the precision hints (gone in 11.x) and move precision into the graph.

When to Use

Installs
5
Repository
nvidia/tensorrt
GitHub Stars
13.3K
First Seen
Aug 24, 2026
trt-strong-typing-migration — nvidia/tensorrt