Function: get_dynamic_hw
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the dynamic image size information supported by a model based on the model description.
Prototype
- C Prototype
1aclError aclmdlGetDynamicHW(const aclmdlDesc *modelDesc, size_t index, aclmdlHW *hw)
- Python Function
1hw_info, ret = acl.mdl.get_dynamic_hw(model_desc, index)
Parameter Description
Parameter |
Description |
|---|---|
model_desc |
Int, pointer address of the data of the aclmdlDesc type. Call acl.mdl.create_desc to create data of the aclmdlDesc type in advance. |
index |
Int, reserved. The value is fixed to –1. |
Return Value Description
Return Value |
Description |
|---|---|
hw_info |
Dict, width and height (image size) supported by the obtained model.
|
ret |
Int, error code.
|
Parent topic: aclmdlDesc