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

Method forward

ML/src/python/neuralforge/nn/layers.py:26–31  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

24 self.dropout = nn.Dropout2d(drop_rate) if drop_rate > 0 else nn.Identity()
25
26 def forward(self, x):
27 x = self.conv(x)
28 x = self.bn(x)
29 x = self.activation(x)
30 x = self.dropout(x)
31 return x
32
33class ResidualBlock(nn.Module):
34 def __init__(self, channels, kernel_size=3, drop_rate=0.0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected