MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / forward

Method forward

Image_Classification/src/models/resnet.py:115–135  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

113 self.stride = stride
114
115 def forward(self, x):
116 identity = x
117
118 out = self.conv1(x)
119 out = self.bn1(out)
120 out = self.relu(out)
121
122 out = self.conv2(out)
123 out = self.bn2(out)
124 out = self.relu(out)
125
126 out = self.conv3(out)
127 out = self.bn3(out)
128
129 if self.downsample is not None:
130 identity = self.downsample(x)
131
132 out = out + identity
133 out = self.relu(out)
134
135 return out
136
137
138class ResNet(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected