[object Object][object Object][object Object]undefined
[object Object]
  • Function: Applies sparse updates to the list of variable reference tensors, and scatters the values in updates to the corresponding dimensions of var by index.

  • Formula:

    var[i][j]=updates[k][j]whenindices[k]=ivar[i][j] = updates[k][j] \quad \text{when} \quad indices[k] = i

    indices is the index tensor, updates is the tensor of values to be updated, var is the list of tensors to be updated, and the dimension to be scattered is specified by the axis parameter.

[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 validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computation:
    • By default, aclnnScatterList is implemented in a non-deterministic manner. You can enable deterministic computing by calling aclrtCtxSetSysParamOpt.
[object Object]

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

[object Object]