Adds the value in the source tensor to the value of the corresponding position in the input tensor based on the given index in a specified dimension.
Each operator has calls. First, aclnnIndexAddGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnIndexAdd is called to perform computation.
[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]
- Deterministic computation:
- aclnnIndexAdd defaults to a non-deterministic implementation. You can call aclrtCtxSetSysParamOpt to enable deterministic computation.
- Index Value Range
- The input value range of index is [0, self.shape[dim]), that is, the shape size of self in the dim dimension.
The following example is for reference only. For details, see .
[object Object]