---
title: SparseSoftMaxFusionPass
description: "该融合将符合图融合pattern的SparseSoftmaxCrossEntropyWithLogits算子，融合成OneHotD + SoftmaxCrossEntropyWithLogits算子。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/graphubfusionref/atlasrr_30_0133.html
sourcePath: /source/zh/canncommercial/900/maintenref/graphubfusionref/atlasrr_30_0133.html
indexId: 27890ad2b8cc8e9f8c7dc2a3bdbd1d2e68d0598b339f8c7ee0fbb16188795ece78
---
# SparseSoftMaxFusionPass

#### 融合模式

该融合将符合图融合pattern的SparseSoftmaxCrossEntropyWithLogits算子，融合成OneHotD + SoftmaxCrossEntropyWithLogits算子。


#### 使用约束

- 不支持动态shape场景。
- input0数据类型仅支持float16、float32。
- input1数据类型仅支持int32。


#### 支持的型号

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