ScopeToAbsoluteBBoxPass

Description

Fuses a scope containing a map that has a while node, ToAbsoluteCoordinates under the while node, and Scale under ToAbsoluteCoordinates. In addition, there are four Mul operators under the scope operator, which are fused into the ToAbsoluteBBox operator.

Scope Details

while exists under map_1:

ToAbsoluteCoordinates exists under while:

Scale exists under ToAbsoluteCoordinates:

Result Operator Prototype

ToAbsoluteBBox. For details, see Operator Acceleration Library API Reference.

Fusion Mapping

The input of Shape or TensorArrayUnstack/Shape is used as the first input of the fused operator.

The input of while/strided_slice/Enter is used as the second input of the fused operator.

The output of TensorArrayStack/TensorArrayGatherV3 is used as the first output of the fused operator.

The fused scope contains the while/ToAbsoluteCoordinates/Scale subgraph structure.

Applicable Network

Fast R-CNN

Fusion Pattern Type

Non-general fusion pattern