(self, negative_slope=0.2)
| 72 | |
| 73 | class ScaledLeakyReLU(nn.Module): |
| 74 | def __init__(self, negative_slope=0.2): |
| 75 | super().__init__() |
| 76 | |
| 77 | self.negative_slope = negative_slope |
| 78 | |
| 79 | def forward(self, input): |
| 80 | return F.leaky_relu(input, negative_slope=self.negative_slope) |