MCPcopy Create free account
hub / github.com/TaoRuijie/TalkNet-ASD / forward

Method forward

model/audioEncoder.py:19–35  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

17 self.stride = stride
18
19 def forward(self, x):
20 residual = x
21
22 out = self.conv1(x)
23 out = self.relu(out)
24 out = self.bn1(out)
25
26 out = self.conv2(out)
27 out = self.bn2(out)
28 out = self.se(out)
29
30 if self.downsample is not None:
31 residual = self.downsample(x)
32
33 out += residual
34 out = self.relu(out)
35 return out
36
37class SELayer(nn.Module):
38 def __init__(self, channel, reduction=8):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected