| 179 | |
| 180 | |
| 181 | class ScaledLeakyReLU(nn.Module): |
| 182 | def __init__(self, negative_slope=0.2): |
| 183 | super().__init__() |
| 184 | |
| 185 | self.negative_slope = negative_slope |
| 186 | |
| 187 | def forward(self, input): |
| 188 | return F.leaky_relu(input, negative_slope=self.negative_slope) |
| 189 | |
| 190 | |
| 191 | class ModulatedConv2d(nn.Module): |