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

Method __init__

ML/src/python/neuralforge/nn/modules.py:155–158  ·  view source on GitHub ↗
(self, channels, reduction=16)

Source from the content-addressed store, hash-verified

153
154class SqueezeExcitation(nn.Module):
155 def __init__(self, channels, reduction=16):
156 super().__init__()
157 self.fc1 = nn.Linear(channels, channels // reduction)
158 self.fc2 = nn.Linear(channels // reduction, channels)
159
160 def forward(self, x):
161 b, c, _, _ = x.size()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected