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

Method predict

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

Source from the content-addressed store, hash-verified

55 return [feature, res]
56
57 def predict(self, x):
58 feature = self.feature(x)
59 feature = feature.view(feature.size(0), -1)
60 feature = self.bn(feature)
61 res = self.fc_layer(feature)
62 out = F.softmax(res, dim=1)
63
64 return out
65
66
67class VGG16_vib(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected