ConvToFullyConnectionFusionPass

Description

Fuses the Conv operator into the FullyConnection operator to improve computing performance.

Before: After:

Constraints

  • Dynamic shapes are not supported.
  • The int4 and int8 data types are not supported. For Atlas A2 training products/Atlas A2 inference products, Float32 does not support filters whose N axis is not aligned to 16.
  • The number of conv2d output nodes must be 1. The input size must be the same as the HWC axis of the filter size. The value of the group attribute must be 1. The value of the pad attribute must be [0,0,0,0].
  • The conv2d operator cannot be followed by the quant or requant operator.
  • The conv2d operator cannot be cascaded with dequant+sigmoid.

Applicable Products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Atlas A2 training products/Atlas A2 inference products

Atlas A3 training products/Atlas A3 inference products