MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/activations.py:109–111  ·  view source on GitHub ↗
(self, negative_slope=0.01)

Source from the content-addressed store, hash-verified

107
108class 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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected