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

Method forward

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

Source from the content-addressed store, hash-verified

38 self.activation = nn.ReLU(inplace=True)
39
40 def forward(self, x):
41 residual = x
42 x = self.conv1(x)
43 x = self.conv2(x)
44 x = x + residual
45 x = self.activation(x)
46 return x
47
48class BottleneckBlock(nn.Module):
49 def __init__(self, in_channels, out_channels, stride=1, expansion=4):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected