Function: get_dynamic_hw
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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)
Parameters
|
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. |
Returns
|
Return Value |
Description |
|---|---|
|
hw_info |
Dict, width and height (image size) supported by the obtained model.
|
|
ret |
Int, error code. |