torch.nn.functional.leaky_relu¶ torch.nn.functional.leaky_relu(input, negative_slope=0.01, inplace=False) → Tensor[來源][來源]¶ 逐元素應用,LeakyReLU(x)=max(0,x)+negative_slope∗min(0,x)\text{LeakyReLU}(x) = \max(0, x) + \text{negative\_slope} * \min(0, x)LeakyReLU(x)=max(0,x)+negative_slope∗min(0,x) 詳情請參閱 LeakyReLU。 回傳類型 Tensor