MCPcopy Create free account
hub / github.com/LetheSec/PLG-MI-Attack / forward

Method forward

models/classifiers/classifier.py:49–55  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

47 self.fc_layer = nn.Linear(self.feat_dim, self.n_classes)
48
49 def forward(self, x):
50 feature = self.feature(x)
51 feature = feature.view(feature.size(0), -1)
52 feature = self.bn(feature)
53 res = self.fc_layer(feature)
54
55 return [feature, res]
56
57 def predict(self, x):
58 feature = self.feature(x)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected