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

Method predict

baselines/classify.py:132–136  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

130 self.fc_layer = nn.Linear(self.feat_dim, self.num_classes)
131
132 def predict(self, x):
133 feat = self.feature(x)
134 feat = feat.view(feat.size(0), -1)
135 out = self.fc_layer(feat)
136 return out
137
138 def forward(self, x):
139 # print("input shape:", x.shape)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected