torch.nn.functional.leaky_relu# torch.nn.functional.leaky_relu(input, negative_slope=0.01, inplace=False) → Tensor[source]# 逐元素应用 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 以获取更多详细信息。 返回类型 张量
torch.nn.functional.leaky_relu# torch.nn.functional.leaky_relu(input, negative_slope=0.01, inplace=False) → Tensor[source]# 逐元素应用 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 以获取更多详细信息。 返回类型 张量