asc.language.basic.get_sort_len
- asc.language.basic.get_sort_len(elem_count: int) RuntimeInt
- asc.language.basic.get_sort_len(elem_count: RuntimeInt) RuntimeInt
Get sort length in the sorted structure.
对应的 Ascend C 函数原型
namespace AscendC { template <typename T> __aicore__ inline uint32_t GetSortLen(const uint32_t elemCount); } // namespace AscendC
参数说明
无。
返回值说明
int: The sort length.
约束说明
elem_count must be a 32-bit unsigned integer.
调用示例
length = asc.get_sort_len(100)