MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / forward

Method forward

models/vgg.py:40–45  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

38
39
40 def forward(self, x):
41 x = self.features(x)
42 x = self.avgpool(x)
43 x = torch.flatten(x, 1)
44 x = self.classifier(x)
45 return x
46
47
48def make_layers(cfg, in_dims=3, batch_norm=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected