---
title: Softmax
description: "x:- 是否必填: 必填"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/operatorlist_00158.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/operatorlist_00158.html
indexId: bd8e7ff6921b1e6f1001e19fa20a37a545ad6307b12d22473deea9bd96d223b564
---
# Softmax

#### 输入

x:- 是否必填: 必填
- 数据类型: float16、float32
- 参数解释: 输入Tensor
- 规格限制: 无


#### 属性

axis:- 是否必填: 非必填
- 数据类型: int
- 参数解释: softmax的轴，axis取值范围为[-dim,dim-1]
- 规格限制:
  vector c<=16384(cs)/24576(ES)

  tensor c<=4096


#### 输出

y:- 是否必填: 必填
- 数据类型: float16、float32
- 参数解释: 输出Tensor
- 规格限制: 无
