ScopeClipBoxesPass

Description

Fuses the clip_boxes scope into a ClipBoxes operator. The scope includes the tf.Maximum, tf.ReverseV2, tf.Tile, and tf. Minimum operators, and does not include the Gather_2, TopKV2, Reshape_2, Split, Greater, Squeeze, Gather, boolean_mask, and decode_bbox_target operators.

Scope Details

Result Operator Prototype

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

Fusion Mapping

The input of clip_boxes/Maximum is used as the first input boxes_input of the fused operator.

The input of clip_boxes/ReverseV2 is used as the second input im_info of the fused operator.

The output of clip_boxes/fastrcnn_all_boxes (Minimum) is used as the output boxes_output of the fused operator.

The output of clip_boxes/ReverseV2 is used as the input of clip_boxes/Tile.

The output of clip_boxes/Tile is used as the input of clip_boxes/ToFloat.

The input of clip_boxes/ToFloat is used as the second input of clip_boxes/fastrcnn_all_boxes.

The output of clip_boxes/Maximum is used as the first input of clip_boxes/fastrcnn_all_boxes.

Applicable Network

2D-H1

Fusion Pattern Type

Non-general fusion pattern