TbeEltwiseCastFusionPass

Description

Fuses the Elemwise and Cast operator in the following four scenarios:

or or or

Restrictions

  • The Cast operator must be float16-to-float32 or float32-to-float16.
  • The Elemwise operator type can be "Relu", "Add", "Mul", or "Sqrt".
  • The other operator can be matched only. It cannot be involved in the fusion.
  • The dynamic shape scenario is not supported.