API Change Description
To optimize API naming and make it clearer and easier to understand, some API names have been changed in the current version compared with CANN8.5.0 and earlier versions. For details, see the following table.
| Original API Name | New API Name | Remarks |
|---|---|---|
| ScalarGetCountOfValue | GetBitCount | None |
| ScalarCountLeadingZero | CountLeadingZero | None |
| ScalarGetSFFValue | GetSFFValue | None |
| ScalarCast | Cast (float to half, int32_t) | None |
| ToBfloat16 | Cast (float to bfloat16_t) | None |
| ToFloat | Cast (multi-type to float) | The return value type of one overloaded version is changed from float to template U, where U = float. |
| FusedMulAddRelu | MulAddRelu | None |
| CastDeq | CastDequant | None |
| CompareScalar | Compares | None |
| GetAccVal | GetReduceRepeatSumSpr | None |
| GetReduceMaxMinCount | GetReduceRepeatMaxMinSpr | None |
| SetAtomicNone | DisableDmaAtomic | None |
| InitConstValue | Fill | None |
| SetMMLayoutTransform | SetMMRowMajor/SetMMColumnMajor | SetMMLayoutTransform(true) corresponds to SetMMRowMajor(). SetMMLayoutTransform(false) corresponds to SetMMColumnMajor(). |
| SetHF32Mode | SetHF32Mode | The API name remains unchanged, and the parameter type is changed from bool to the HF32Mode enum. |
| SetHF32TransMode | SetHF32TransMode | The API name remains unchanged, and the parameter type is changed from bool to the HF32TransMode enum. |
| CalcTschBlockDim | CalcTschNumBlocks | None |
The APIs in the following table were modified in 9.1.0. Compared with CANN9.0.0 and earlier versions, some API names have been changed. For details, see the following table.
| Original API Name | New API Name | Remarks |
|---|---|---|
| BlockReduceSum / BlockReduceMax / BlockReduceMin | ReduceDataBlock | •Provides a unified DataBlock reduction operation API, distinguishing different reduction operations through template parameters. •Adjusts the parameter order of mask and repeatTime. |
| WholeReduceSum / WholeReduceMax / WholeReduceMin | ReduceRepeat | Provides a unified Repeat reduction operation API, distinguishing different reduction operations through template parameters. |
| RepeatReduceSum | ReduceRepeat | •Provides a unified Repeat reduction operation API, distinguishing different reduction operations through template parameters. •Adjusts the parameter order of mask and repeatTime. •Removes the invalid parameter dstBlkStride. |
| PairReduceSum | ReducePairElem | •Provides a unified Pair element reduction operation API, distinguishing different reduction operations through template parameters. •Adjusts the parameter order of mask and repeatTime. |