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

Method forward

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

Source from the content-addressed store, hash-verified

44 self.bn = nn.BatchNorm2d(channels)
45
46 def forward(self, x):
47 tx = self.bn(self.conv(x))
48 return torch.max(x, tx)
49
50class GLU(nn.Module):
51 def __init__(self, dim=-1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected