If aclTensor inputs of an API (such as aclnnAdd or aclnnMul) are of different data types, the API internally deduces a data type and converts the input data into this data type for computation.
Some supported by aclTensor meet the following deduction rules, which are similar to those of .
[object Object]
Table 1 Data type deduction relationship
- When aclnnAdd is called, if the data types of the input parameters are different (one is float16 and the other is float32), the API converts float16 to float32 for computation.
- When aclnnAdd is called, if the data types of the input parameters are different (one is float32 and the other is bool), the API converts bool to float32 for computation.