MCPcopy Create free account
hub / github.com/SLDGroup/EMCAD / forward

Method forward

lib/resnet.py:45–61  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

43 self.stride = stride
44
45 def forward(self, x):
46 residual = x
47
48 out = self.conv1(x)
49 out = self.bn1(out)
50 out = self.relu(out)
51
52 out = self.conv2(out)
53 out = self.bn2(out)
54
55 if self.downsample is not None:
56 residual = self.downsample(x)
57
58 out += residual
59 out = self.relu(out)
60
61 return out
62
63
64class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected