---
title: PReLU
description: "- x:"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/operatorlist_00140.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/operatorlist_00140.html
indexId: ef2ecb3ed0a1e09d74800053e430f8130224bb63ebbe314331c2c900d182d80864
---
# PReLU

#### 输入

- x:

  - 是否必填: 必填
  - 数据类型: int8、uint8、float16、float32
  - 参数解释: 激活函数，y=weight min(x,0)+max(x,0)
  - 规格限制: float16


- weight:

  - 是否必填: 必填
  - 数据类型: int8、uint8、float16、float32
  - 参数解释: 只根据weight的维度区分是否为channel_shared场景 ，如果weight只有一个数，则为channel_shared==True，如果weight是channel维度 ，则channel_shared==False
  - 规格限制: 支持float16，是channel维度的向量或者标量

#### 输出

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