aclGetTensorDescElementCount

Description

Obtains the element count specified in a tensor description.

Prototype

size_t aclGetTensorDescElementCount(const aclTensorDesc *desc)

Parameters

Parameter

Input/Output

Description

desc

Input

Pointer to data of the aclTensorDesc type.

Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance.

Returns

Number of elements in the tensor description