- Description: Raises each tensor in the input tensor list x to the power of the input scalar scalar. Compared with , this API changes the structure type of the input parameter scalar from aclTensor to aclScalar. Select a proper API based on the actual situation.
- Formula:
Each operator has calls. First, aclnnForeachPowScalarV2GetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachPowScalarV2 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 validation. The following error codes may be returned.
[object Object]
- Deterministic computation:
- aclnnForeachPowScalarV2 defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]