(self, x)
| 103 | self.weight = nn.Parameter(torch.ones(num_parameters) * init) |
| 104 | |
| 105 | def forward(self, x): |
| 106 | return torch.where(x > 0, x, self.weight * x) |
| 107 | |
| 108 | class LeakyReLU(nn.Module): |
| 109 | def __init__(self, negative_slope=0.01): |
nothing calls this directly
no outgoing calls
no test coverage detected