[object Object][object Object][object Object]undefined
[object Object]
  • Description: Performs routing on the computation result of .
  • Formula: Flattens the input [object Object] with shape [numRows, k] into a row for sorting.expandedExpertIdxOut,sortedRowIdx=keyValueSort(expertIdx,rowIdx)expandedExpertIdxOut,sortedRowIdx=keyValueSort(expertIdx,rowIdx) expandedRowIdxOut[sortedRowIdx[i]]=iexpandedRowIdxOut[sortedRowIdx[i]]=i expandedXOut[i]=x[sortedRowIdx[i]%numRows]expandedXOut[i]=x[sortedRowIdx[i]\%numRows]
[object Object]

Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns

    [object Object] status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    [object Object] status code. For details, see .

[object Object]
  • Deterministic computing:
    • [object Object] defaults to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

[object Object]