---
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/TensorFlowCommercial/latest/Convergence/tfscopefusionref/atlasfr_30_0017.html
sourcePath: /source/zh/TensorFlowCommercial/900/Convergence/tfscopefusionref/atlasfr_30_0017.html
indexId: e190a0c2de15c70fb9a54bf0adc88a7ba5a8ea7af4bc79d4fa459a404fddbd8185
---
# 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/canncommercial/900/API/aolapi/operatorlist_00001.html)》。


#### 融合对应关系

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

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

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

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

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


#### 适用网络

Fast R-CNN


#### 融合规则类型

定制化融合规则
