aitune.torch.backend.tensorrt.tensorrt_profile
aitune.torch.backend.tensorrt.tensorrt_profile
TensorRT Profile for specifying optimization profiles.
Module Contents
Classes
Data
API
Class for representing a TensorRT optimization profile.
This class provides an interface for defining optimization profiles for TensorRT engines with dynamic shapes.
Get the underlying Polygraphy Profile.
Check if two TensorRTProfiles are equal.
Hash the TensorRTProfile.
Return the official string representation of the profile.
Returns: str
Official string representation
Return string representation of the profile.
Returns: str
String representation
Add a shape binding to the profile.
Parameters:
Forward parameter path identifying the input tensor
The minimum shape the profile will support
The shape for which TensorRT will tune the engine
The maximum shape the profile will support
Returns: TensorRTProfile
The profile object for chaining
Create TensorRTProfile from dictionary.
Convert Polygraphy Profile to dictionary.
Convert TensorRTProfile to dictionary.