1、LeakyReLU 激活函数的作用机制
![](http://www.hbase.cn/usr/uploads/2024/06/1287293504.png)
2、LeakyReLU 激活函数的图像展示
![](http://www.hbase.cn/usr/uploads/2024/06/1332270986.png)
3、PyTorch LeakyReLU 激活函数
torch.nn.LeakyReLU(negative_slope=0.01, inplace=False)
4、PyTorch LeakyReLU 激活函数的应用场景
>>> m = nn.LeakyReLU(0.1)
>>> input = torch.randn(2)
>>> output = m(input)
torch.nn.LeakyReLU(negative_slope=0.01, inplace=False)
>>> m = nn.LeakyReLU(0.1)
>>> input = torch.randn(2)
>>> output = m(input)