- Function: Calculates the opposite number of each input element.
- Formulas:
Each operator has calls. First, [object Object] or [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] or [object Object] is called to perform computation.
[object Object]
[object Object]
[object Object]
[object Object]
Parameter description:
[object Object]- [object Object]Atlas 200I/500 A2 inference product[object Object] and [object Object]Atlas training products[object Object]: The self and out parameters do not support the BFLOAT16 type.
Returns
[object Object]: status code. For details, see .The first-phase API performs input parameter validation. The following errors may be returned:
[object Object]
Parameter description:
[object Object]- For the [object Object]Atlas 200I/500 A2 inference product[object Object] and [object Object]Atlas training products[object Object], the self and out parameters do not support the BFLOAT16 type.
Returns
[object Object]: status code. For details, see .The first-phase API performs input parameter validation. The following errors may be returned:
[object Object]
- Deterministic computation:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
aclnnNeg sample code:
[object Object]
Sample code for calling aclnnInplaceNeg:
[object Object]