Function: get_cur_output_dims
C Prototype |
aclError aclmdlGetCurOutputDims(const aclmdlDesc *modelDesc, size_t index, aclIODims *dims) |
|---|---|
Python Function |
dims, ret = acl.mdl.get_cur_output_dims(model_desc, index) |
Function Usage |
Obtains the actual shape of an output tensor based on the model description. |
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 whose Dims is to be obtained, indexing starting at 0. |
Return Value |
dims: dict, actual shape.
ret: int, error code.
|
Restrictions |
Currently, this API can be used to obtain the shape of the model output tensors only in the following scenarios:
|