Function: Replaces or accumulates the data of the coordinates corresponding to the input self with the input values based on the indices.
Formula:
If accumulate is set to False:
If accumulate is set to True:
Each operator has calls. First, aclnnIndexPutImplGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnIndexPutImpl is called to perform computation.
Parameters
[object Object]- [object Object]Atlas training products[object Object]: The data type cannot be BFLOAT16.
- For the Ascend 950PR/Ascend 950DT, if accumulate is set to False and indices have duplicate index values, the result is not order-preserving.
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
Deterministic computation:
- aclnnIndexPutImpl defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic computation.
The input parameters selfRef, indices, and values have the following constraints:
- The number of tensors in indices cannot exceed the number of dimensions of selfRef.
- The dimensions of values must meet the following formula or the following formula after broadcasting:
- values.Dims() = indices[i].Dims() + (selfRef.Dims() - indices.size())
- The first half of the dimensions of values must be the same as the tensor dimensions in indices (the tensors in indices are broadcast to the same shape), and the second half of the dimensions must be the same as the dimensions of selfRef minus the number of tensors in indices.
The following example is for reference only. For details, see .