MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / __init__

Method __init__

segmentation/backbones/cgnet.py:174–178  ·  view source on GitHub ↗
(self, num_downsampling)

Source from the content-addressed store, hash-verified

172 """Downsampling module for CGNet."""
173
174 def __init__(self, num_downsampling):
175 super(InputInjection, self).__init__()
176 self.pool = nn.ModuleList()
177 for i in range(num_downsampling):
178 self.pool.append(nn.AvgPool2d(3, stride=2, padding=1))
179
180 def forward(self, x):
181 for pool in self.pool:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected