model_gear
Function Usage
Obtains the dynamic input profiles supported by the model, supporting models with dynamic batches, dynamic image sizes, and dynamic dimension profiles.
Prototype
1 | model_gear() |
Response Parameters
Returns the profile information (List[List[int]]) of the input tensor.
If the returned data structure is empty, the profile information fails to be obtained or the model is not one of the three models described above. For details about the cause, see the error information.
For example, if the model is a dynamic image size model, List[int] indicates the height and width of a specific profile.
Parent topic: Model