(self, negative_slope=0.01)
| 107 | |
| 108 | class LeakyReLU(nn.Module): |
| 109 | def __init__(self, negative_slope=0.01): |
| 110 | super().__init__() |
| 111 | self.negative_slope = negative_slope |
| 112 | |
| 113 | def forward(self, x): |
| 114 | return F.leaky_relu(x, self.negative_slope) |