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

Method forward

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

Source from the content-addressed store, hash-verified

64 self.activation = nn.ReLU(inplace=True)
65
66 def forward(self, x):
67 residual = self.shortcut(x)
68 x = self.conv1(x)
69 x = self.conv2(x)
70 x = self.conv3(x)
71 x = x + residual
72 x = self.activation(x)
73 return x
74
75class InvertedResidualBlock(nn.Module):
76 def __init__(self, in_channels, out_channels, stride=1, expand_ratio=6):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected