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:
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.
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.
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]
- Deterministic computation:
- By default, aclnnScatterList is implemented in a non-deterministic manner. You can enable deterministic computing by calling aclrtCtxSetSysParamOpt.
The following example is for reference only. For details, see .