---
title: SoftmaxFusionPass
description: "该融合规则将SoftmaxV2输入和输出添加TransposeD算子。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/graphubfusionref/atlasrr_30_0008.html
sourcePath: /source/zh/canncommercial/900/maintenref/graphubfusionref/atlasrr_30_0008.html
indexId: 6369435788b4edcc125d75cb03f8b4422265d5af338ede83cd3a2dddd733d15e78
---
# SoftmaxFusionPass

#### 融合模式

该融合规则将SoftmaxV2输入和输出添加TransposeD算子。

融合为


#### 使用约束

- 输入shape约束：
输入仅支持三维或者五维。

  - 当输入是三维时，输入shape最后两维度大小分别是{8732, 21}。
  - 当输入是五维时，输入shape最后四维度大小分别是{224, 224, 160, 4}。
- 输入参数的大小约束：
  输入参数的大小（元素个数×dtype大小）不得超过int32的最大值：231-1。

- 输入属性约束：
  仅支持属性axes的第一个值指定最后一个轴。


#### 支持的型号

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

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

Atlas 200I/500 A2 推理产品

Atlas 推理系列产品

Atlas 训练系列产品
