MCPcopy Create free account
hub / github.com/geekcomputers/Python / forward

Method forward

ML/src/python/neuralforge/nn/layers.py:152–156  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

150 )
151
152 def forward(self, x):
153 b, c, _, _ = x.size()
154 se = self.squeeze(x).view(b, c)
155 se = self.excitation(se).view(b, c, 1, 1)
156 return x * se.expand_as(x)
157
158class DepthwiseSeparableConv(nn.Module):
159 def __init__(self, in_channels, out_channels, kernel_size=3, stride=1, padding=1):

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected