MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / forward

Method forward

resnet.py:37–53  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

35 self.stride = stride
36
37 def forward(self, x):
38 residual = x
39
40 out = self.conv1(x)
41 out = self.bn1(out)
42 out = self.relu(out)
43
44 out = self.conv2(out)
45 out = self.bn2(out)
46
47 if self.downsample is not None:
48 residual = self.downsample(x)
49
50 out += residual
51 out = self.relu(out)
52
53 return out
54
55
56class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected