MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / forward

Method forward

network/Resnet.py:179–194  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

177 return nn.Sequential(*layers)
178
179 def forward(self, x):
180 x = self.conv1(x)
181 x = self.bn1(x)
182 x = self.relu(x)
183 x = self.maxpool(x)
184
185 x = self.layer1(x)
186 x = self.layer2(x)
187 x = self.layer3(x)
188 x = self.layer4(x)
189
190 x = self.avgpool(x)
191 x = x.view(x.size(0), -1)
192 x = self.fc(x)
193
194 return x
195
196
197def resnet18(pretrained=True, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected