MCPcopy Create free account
hub / github.com/M-Nauta/ProtoTree / forward

Method forward

features/resnet_features.py:197–208  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

195 return nn.Sequential(*layers)
196
197 def forward(self, x):
198 x = self.conv1(x)
199 x = self.bn1(x)
200 x = self.relu(x)
201 x = self.maxpool(x)
202
203 x = self.layer1(x)
204 x = self.layer2(x)
205 x = self.layer3(x)
206 x = self.layer4(x)
207
208 return x
209
210 def conv_info(self):
211 return self.kernel_sizes, self.strides, self.paddings

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected