MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / forward

Method forward

pycontrast/networks/resnet.py:61–77  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

59 self.stride = stride
60
61 def forward(self, x):
62 identity = x
63
64 out = self.conv1(x)
65 out = self.bn1(out)
66 out = self.relu(out)
67
68 out = self.conv2(out)
69 out = self.bn2(out)
70
71 if self.downsample is not None:
72 identity = self.downsample(x)
73
74 out += identity
75 out = self.relu(out)
76
77 return out
78
79
80class Bottleneck(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected