---
title: ScopeKeepRatioResizeBilinearPass
description: "将特定Scope进行融合成KeepRatioResizeBilinear + Shape + Slice*2 + ExpandDims + ConcatV2 + Tile + Const，Scope中包括图结构：map/while/ResizeToRange/，包括算子Maximum，Minimum，Round，ResizeBilinear。"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommunity/latest/Convergence/tfscopefusionref/atlasfr_30_0017.html
sourcePath: /source/zh/TensorFlowCommunity/910/Convergence/tfscopefusionref/atlasfr_30_0017.html
indexId: 79d4ebeb333ddaded3329172c2713c0f8e4a5864ce68e8ab77e111d1c492f9e584
---
# ScopeKeepRatioResizeBilinearPass

#### 功能说明

将特定Scope进行融合成KeepRatioResizeBilinear + Shape + Slice*2 + ExpandDims + ConcatV2 + Tile + Const，Scope中包括图结构：map/while/ResizeToRange/，包括算子Maximum，Minimum，Round，ResizeBilinear。


#### Scope详情


#### 融合后的算子原型

KeepRatioResizeBilinear + Shape + Slice*2 + ExpandDims + ConcatV2 + Tile + Const，具体请参见《算子库(https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/920beta1/API/aolapi/operatorlist_00001.html)》。


#### 融合对应关系

“scope名字+/Shape”的节点输入作为融合后子图的输入。

TensorArrayStack/TensorArrayStack/TensorArrayGatherV3输出作为融合后子图的第一个输出。

TensorArrayStack_1/TensorArrayStack_1/TensorArrayGatherV3输出作为融合后子图的第二个输出。

融合后子图KeepRatioResizeBilinear算子的输出连接到scope第一个输出。

融合后子图Tile的输出连接到scope第二个输出。


#### 适用网络

Fast R-CNN


#### 融合规则类型

定制化融合规则
