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

Method __init__

model/audioEncoder.py:8–17  ·  view source on GitHub ↗
(self, inplanes, planes, stride=1, downsample=None, reduction=8)

Source from the content-addressed store, hash-verified

6 expansion = 1
7
8 def __init__(self, inplanes, planes, stride=1, downsample=None, reduction=8):
9 super(SEBasicBlock, self).__init__()
10 self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
11 self.bn1 = nn.BatchNorm2d(planes)
12 self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, padding=1, bias=False)
13 self.bn2 = nn.BatchNorm2d(planes)
14 self.relu = nn.ReLU(inplace=True)
15 self.se = SELayer(planes, reduction)
16 self.downsample = downsample
17 self.stride = stride
18
19 def forward(self, x):
20 residual = x

Callers

nothing calls this directly

Calls 2

SELayerClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected