Function: get_input_dims_range
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Obtains the dimension range of an input tensor based on the model description.
Prototype
- C Prototype
1aclError aclmdlGetInputDimsRange(const aclmdlDesc *modelDesc, size_t index, aclmdlIODimsRange *dimsRange)
- Python Function
1dims_range, ret = acl.mdl.get_input_dims_range(model_desc, index)
Parameter Description
Parameter |
Description |
|---|---|
model_desc |
Int, pointer to data of the aclmdlDesc type. Call create_desc to create data of the aclmdlDesc type in advance. |
index |
Int, index of the input dimension information to be obtained, starting from 0. |
Return Value Description
Return Value |
Description |
|---|---|
dims_range |
Dict, dictionary of input dimension information. For details, see aclmdlIODimsRange.
|
ret |
Int, 0 on success; else, failure. |