GetSortOffset

Function Usage

Obtains the offset (in bytes) in the sorted data based on the element position.

Prototype

1
2
template <typename T>
__aicore__ inline uint32_t GetSortOffset(const uint32_t elemOffset)

Parameters

Table 1 Parameters in the template

Parameter

Function

T

Data type of the operand.

Table 2 API parameters

API

Input/Output

Function

elemOffset

Input

Element position.

Returns

Offset in the sorted data.

Availability

Example

1
AscendC::GetSortOffset<half>(128);