Muls

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products ×
Atlas inference products √
Atlas training products √

Function Description

  • Operator function: multiplies each element of the input tensor by a scalar variable.

  • Computation formula:

y=x×valuey = x \times value

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input parameter for the Mul computation, which is x in the formula. FLOAT, FLOAT16, BFLOAT16, INT16, INT32, INT64, COMPLEX32, COMPLEX64 ND
value Input attribute Scalar input parameter for the Mul computation, which is value in the formula. FLOAT, FLOAT16, BFLOAT16, INT16, INT32, INT64, COMPLEX32, COMPLEX64 ND
y Output Element-wise product result of the tensors, which is y in the formula. FLOAT, FLOAT16, BFLOAT16, INT16, INT32, INT64, COMPLEX32, COMPLEX64 ND

Constraint Description

None

Invocation Description

Invocation Method Invocation Sample Description
aclnn invocation test_aclnn_muls Invokes the Muls operator through the aclnnMuls API.