Appendix: Migrating trtexec Usage from TensorRT 8.x to 10.x#
This page describes how to update trtexec usage when migrating from TensorRT 8.x to 10.x: before/after command examples and lists of removed or deprecated options.
Migrating --workspace and --minTiming Options#
The examples below show TensorRT 8.x first, then TensorRT 10.x, for the same trtexec invocation pattern.
1trtexec \
2 --onnx=/path/to/model.onnx \
3 --saveEngine=/path/to/engine.trt \
4 --optShapes=input:$INPUT_SHAPE \
5
6 --workspace=1024 \
7 --minTiming=1
1trtexec \
2 --onnx=/path/to/model.onnx \
3 --saveEngine=/path/to/engine.trt \
4 --optShapes=input:$INPUT_SHAPE \
5
6 --memPoolSize=workspace:1024
Summary of Changes#
--workspaceflag replaced with--memPoolSize=workspace:<size>--minTimingflag removed (use--avgTiminginstead)
Removed trtexec Flags and Replacements#
Warning
The flags listed below have been removed in TensorRT 10.x. Using them will cause trtexec to exit with an error. Review each entry for its replacement before upgrading.
Removed Flag |
Replacement |
|---|---|
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
TensorRT 10.x does not support Caffe input, UFF input, and implicit batch dimension mode. |
|
|
|
|
|
|
|
Removed (no replacement). |
|
Removed (no replacement). |
|
|
|
|
|
|
Deprecated trtexec Flags and Replacements#
The following trtexec flags have been deprecated. Each entry shows the deprecated flag and its replacement.
Deprecated Flag |
Replacement |
|---|---|
|
Use |
|
|
|
Enabled by default and has no effect. |
|
|
|
|
|
|
|
|