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

Method forward

segmentation/backbones/fast_scnn.py:257–268  ·  view source on GitHub ↗
(self, higher_res_feature, lower_res_feature)

Source from the content-addressed store, hash-verified

255 self.relu = nn.ReLU(True)
256
257 def forward(self, higher_res_feature, lower_res_feature):
258 lower_res_feature = resize(
259 lower_res_feature,
260 size=higher_res_feature.size()[2:],
261 mode='bilinear',
262 align_corners=self.align_corners)
263 lower_res_feature = self.dwconv(lower_res_feature)
264 lower_res_feature = self.conv_lower_res(lower_res_feature)
265
266 higher_res_feature = self.conv_higher_res(higher_res_feature)
267 out = higher_res_feature + lower_res_feature
268 return self.relu(out)
269
270
271@BACKBONES.register_module()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected