---
title: AReduceSumFusionPass
description: "静态场景下，该融合将符合图融合pattern的ReduceSum算子修改为Reshape算子。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/graphubfusionref/atlasrr_30_0116.html
sourcePath: /source/zh/canncommercial/900/maintenref/graphubfusionref/atlasrr_30_0116.html
indexId: 8297c59a9b9192221c21a7554d458d655e18a206129473befc71f9bb7be836e378
---
# AReduceSumFusionPass

#### 融合模式

静态场景下，该融合将符合图融合pattern的ReduceSum算子修改为Reshape算子。


#### 使用约束

- 动态场景下，该融合规则不生效。
- 轴不是空tensor，轴大小没有超过输入维度的范围，且输入shape全为1, 比如：[1,1,1]。
- 该融合不可关闭。


#### 支持的型号

Atlas A2 训练系列产品 / Atlas A2 推理系列产品
