Function: get_output_size_by_index
C Prototype |
size_t aclmdlGetOutputSizeByIndex(aclmdlDesc *modelDesc, size_t index) |
|---|---|
Python Function |
size = acl.mdl.get_output_size_by_index(model_desc, index) |
Function Usage |
Obtains the output size in bytes based on data of the aclmdlDesc type. |
Input 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, sequence number of the output to be obtained, starting from 0. |
Return Value |
size: int, size of the output, in bytes.
|
Restrictions |
If the size obtained from this call is 0, the possible cause is that the range of the output shape is unknown. Currently, the following two processing methods are available:
|