Function: Treats selfRef as a 1D tensor and uses the element values in the index tensor as indexes. If accumulate is true, the elements in source are accumulated with the elements in the corresponding positions of selfRef. If accumulate is false, the elements in source are replaced with the elements in the corresponding positions of selfRef.
Formula:
accumulate = True:
accumulate = False:
Each operator has calls. First, aclnnInplacePutGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnInplacePut is called to perform computation.
Parameters
[object Object]- For [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object], the data type cannot be BFLOAT16, COMPLEX64, or COMPLEX128.
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:
- aclnnInplacePut defaults to a deterministic implementation.
The following example is for reference only. For details, see .