LeakyReLU
https://pytorch.org/docs/stable/generated/torch.nn.LeakyReLU.html
LeakyReLU(x)=max(0,x)+negative_slope∗min(0,x)
or
LeakyReLU(x)= x, if x≥0
= negative_slope×x, otherwise
>>> m = nn.LeakyReLU(0.1) >>> input = torch.randn(2) >>> output = m(input)
Комментариев нет:
Отправить комментарий