MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / forward

Method forward

timm/models/sknet.py:78–90  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

76 nn.init.zeros_(self.conv2.bn.weight)
77
78 def forward(self, x):
79 shortcut = x
80 x = self.conv1(x)
81 x = self.conv2(x)
82 if self.se is not None:
83 x = self.se(x)
84 if self.drop_path is not None:
85 x = self.drop_path(x)
86 if self.downsample is not None:
87 shortcut = self.downsample(shortcut)
88 x += shortcut
89 x = self.act(x)
90 return x
91
92
93class SelectiveKernelBottleneck(nn.Module):

Callers

nothing calls this directly

Calls 1

downsampleMethod · 0.80

Tested by

no test coverage detected