評價此頁

torch.nn.functional.leaky_relu#

torch.nn.functional.leaky_relu(input, negative_slope=0.01, inplace=False) Tensor[原始碼]#

逐元素應用 LeakyReLU(x)=max(0,x)+negative_slopemin(0,x)\text{LeakyReLU}(x) = \max(0, x) + \text{negative\_slope} * \min(0, x)

有關更多詳細資訊,請參閱 LeakyReLU

返回型別

張量