Description: Performs element-wise multiplication on tensor lists x2 and x3, multiplies the result by the tensor scalar, and then adds the result element-wise to tensor list x1.
Formula:
Each operator has calls. First, aclnnForeachAddcmulScalarGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachAddcmulScalar is called to perform computation.
Parameters
[object Object][object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training series products/Atlas A3 inference series products[object Object]:
The data type of
[object Object]depends on that of[object Object]:- When
[object Object]is of the FLOAT32, FLOAT16, or INT32 type, the data type remains consistent with that of[object Object]. - When
[object Object]is of the BFLOAT16 type, the data type must be FLOAT32.
- When
Returns
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
- aclnnForeachAddcmulScalar defaults to a deterministic implementation.
The following example is for reference only. For details, see .