MCPcopy Create free account
hub / github.com/RolnickLab/climart / __init__

Method __init__

climart/models/modules/additional_layers.py:56–64  ·  view source on GitHub ↗
(self, c, r=16)

Source from the content-addressed store, hash-verified

54
55class SE_Block(nn.Module):
56 def __init__(self, c, r=16):
57 super().__init__()
58 self.squeeze = GAP()
59 self.excitation = nn.Sequential(
60 nn.Linear(c, c // r, bias=False),
61 nn.ReLU(inplace=True),
62 nn.Linear(c // r, c, bias=False),
63 nn.Sigmoid()
64 )
65
66 def forward(self, x):
67 b, c, f = x.shape

Callers

nothing calls this directly

Calls 2

GAPClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected