aclGetDataType

Function Usage

Obtains the data type of the aclTensor.

Prototype

aclnnStatus aclGetDataType(const aclTensor *tensor, aclDataType *dataType)

Parameters

The definition of aclDataType is provided by AscendCL. For details, see aclDataType in Application Development APIs.

Parameter

Input/Output

Description

tensor

Input

Source tensor. The aclTensor must be created by calling the aclCreateTensor API in advance.

dataType

Output

Returned data type of the aclTensor.

Returns

0 on success; else, failure.