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

Method forward

ML/src/python/neuralforge/nn/convolution.py:69–84  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

67 return nn.Sequential(*layers)
68
69 def forward(self, x):
70 x = self.conv1(x)
71 x = self.bn1(x)
72 x = self.relu(x)
73 x = self.maxpool(x)
74
75 x = self.layer1(x)
76 x = self.layer2(x)
77 x = self.layer3(x)
78 x = self.layer4(x)
79
80 x = self.avgpool(x)
81 x = torch.flatten(x, 1)
82 x = self.fc(x)
83
84 return x
85
86class EfficientNetBlock(nn.Module):
87 def __init__(self, in_channels, out_channels, kernel_size, stride, expand_ratio, se_ratio=0.25):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected