[object Object][object Object]

If the input tensor data type of an API (such as aclnnAdds or aclnnMuls) is different from that of the input scalar data type, the API internally deduces a data type and converts the input data into the deduced data type for computation.

The rules for type deduction are as follows.

[object Object]

Table 1 Data type deduction relationship

[object Object]undefined
[object Object]
  • If the data type of the input tensor is float16 and that of the input scalar is float32, the API will convert the float32 data type of the input scalar to float16 and then perform computation.
  • If the data type of the input tensor is bool and that of the input scalar is float32, the API will convert the bool data type of the input tensor to float32 and then perform computation.