TensorRT
model_navigator.api.config.TensorRTPrecision
model_navigator.api.config.TensorRTPrecisionMode
model_navigator.api.config.TensorRTConfig
dataclass
Bases: CustomConfigForFormat
TensorRT custom config used for TensorRT conversion.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
precision |
Union[Union[str, TensorRTPrecision], Tuple[Union[str, TensorRTPrecision], ...]]
|
TensorRT precision. |
DEFAULT_TENSORRT_PRECISION
|
max_workspace_size |
Optional[int]
|
Max workspace size used by converter. |
DEFAULT_MAX_WORKSPACE_SIZE
|
trt_profile |
Optional[TensorRTProfile]
|
TensorRT profile. |
None
|
format: Format
property
__post_init__()
Parse dataclass enums.
Source code in model_navigator/api/config.py
defaults()
Update parameters to defaults.
Source code in model_navigator/api/config.py
from_dict(config_dict)
classmethod
Instantiate TensorRTConfig from adictionary.