MCPcopy Create free account
hub / github.com/Sirwenhao/Deep-Learning-Notes / forward

Method forward

CV/Pytorch_classification/RegNet/model.py:178–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 nn.init.zeros_(self.conv3.bn.weight)
177
178 def forward(self):
179 shortcut = x
180 x = self.conv1(x)
181 x = self.conv2(x)
182
183 x = self.se(x)
184 x = self.conv3(x)
185
186 x = self.dropout(x)
187
188 shortcut = self.downsample(shortcut)
189
190 x += shortcut
191 x = self.ac3(x)
192 return x
193
194class RegStage(nn.Moduel):
195 def __init__(self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected