[object Object]

When the output data type of aclTensor of an API (such as aclnnAdd or aclnnMul) is inconsistent with the deduced result of the input data type, the API internally converts the computation result to the desired data type.

Data type conversion must meet the following rules; otherwise, parameter verification fails when APIs are called.

  • Floating-point types: ACL_FLOAT16, ACL_FLOAT, ACL_DOUBLE, and ACL_BF16
  • Integer types: ACL_INT8, ACL_UINT8, ACL_INT16, ACL_UINT16, ACL_INT32, ACL_UINT32, ACL_INT64, and ACL_UINT64
  • Complex number types: ACL_COMPLEX64 and ACL_COMPLEX128
  • Integer types can be converted to each other, and can also be converted to floating-point and complex number types.
  • Floating-point types can be converted to each other, and can also be converted to complex number types.
  • Complex number types can be converted to each other.
  • BOOL can be converted to integer, floating-point, and complex number types.

Conversion is supported only for the scenarios mentioned above.