aclmdlGetInputDynamicGearCount
Description
Obtains the number of dynamic shape profiles supported by a model based on the model description.
Restrictions
If no dynamic dimension profile is not set during model building, this API call returns 0 dynamic dimension profiles. For details about model building, see Building a Model.
Prototype
aclError aclmdlGetInputDynamicGearCount(const aclmdlDesc *modelDesc, size_t index, size_t *gearCount)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
modelDesc |
Input |
Pointer to data of the aclmdlDesc type. Call aclmdlCreateDesc to create data of the aclmdlDesc type in advance. |
|
index |
Input |
Reserved. The value is fixed to –1. |
|
gearCount |
Output |
Pointer to the number of dynamic shape profiles. For example, if the input tensor of a model is 4-dimensional and the shape profiles specified by the --dynamic_dims option for model conversion are 1,3,224,224;2,3,224,224;1,3,256,256, the number of dynamic shape profiles obtained by this API call is 3. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.