Description: Performs element-wise multiplication of each tensor in the input tensor list by the corresponding scalar in the scalar list.
Formula:
Each operator has calls. First, aclnnForeachMulScalarListGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnForeachMulScalarList 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]must be FLOAT32 or INT64 and depends on that of[object Object]:- When
[object Object]is of the FLOAT32, FLOAT16, or BFLOAT16 type,[object Object]must be FLOAT32. - When
[object Object]is of the INT32 type,[object Object]must be INT64.
- 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:
- aclnnForeachMulScalarList defaults to a deterministic implementation.
The following example is for reference only. For details, see .