aclGetTensorDescByIndex

Description

Obtains an input/output tensor description based on the input/output index.

Prototype

aclTensorDesc *aclGetTensorDescByIndex(aclTensorDesc *desc, size_t index)

Parameters

Parameter

Input/Output

Description

desc

Input

Pointer to data of the aclTensorDesc type.

Call aclmdlCreateAndGetOpDesc to obtain the tensor descriptions of all inputs or all outputs of the operator.

index

Input

Sequence number of the input or output tensor to obtain, indexed starting at 0.

Must be in the range of [0, Operator input/output count – 1]. Call aclmdlCreateAndGetOpDesc to obtain the operator input or output count.

Returns

Pointer to data of the aclTensorDesc type.