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

Method forward

ML/src/python/neuralforge/nn/activations.py:113–114  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

111 self.negative_slope = negative_slope
112
113 def forward(self, x):
114 return F.leaky_relu(x, self.negative_slope)
115
116class Softplus(nn.Module):
117 def __init__(self, beta=1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected