RealDiv2MulsFusionPass

Description

When the data type of the second input of the RealDiv operator is scalar, this pattern converts the operator into the Muls operator, and the second input becomes the reciprocal of the original input.

Restrictions

  • The input x2 must be either a scalar or of type float32, and it cannot be a tensor.
  • The value of x2 must be greater than 1 × 10−6.

Availability

Atlas inference product

Atlas 200I/500 A2 inference product

Atlas training product

Atlas A2 training product/Atlas A2 inference product