MCPcopy Index your code
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/layers.py:129–134  ·  view source on GitHub ↗
(self, in_channels, out_channels)

Source from the content-addressed store, hash-verified

127
128class TransitionLayer(nn.Module):
129 def __init__(self, in_channels, out_channels):
130 super().__init__()
131 self.bn = nn.BatchNorm2d(in_channels)
132 self.relu = nn.ReLU(inplace=True)
133 self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=1, bias=False)
134 self.pool = nn.AvgPool2d(kernel_size=2, stride=2)
135
136 def forward(self, x):
137 x = self.conv(self.relu(self.bn(x)))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected