MCPcopy Create free account
hub / github.com/deepbrainai-research/float / forward

Method forward

models/__init__.py:218–234  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

216 self.stride = stride
217
218 def forward(self, x):
219 residual = x
220 out = self.conv1(x)
221 out = self.bn1(out)
222 out = self.relu(out)
223
224 out = self.conv2(out)
225 out = self.bn2(out)
226 out = self.se(out)
227
228 if self.downsample is not None:
229 residual = self.downsample(x)
230
231 out += residual
232 out = self.relu(out)
233
234 return out
235
236
237class SEBottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected