MCPcopy Create free account
hub / github.com/DropEdge/DropEdge / get_label_and_idxes

Method get_label_and_idxes

src/sample.py:168–174  ·  view source on GitHub ↗

Return all labels and indexes.

(self, cuda)

Source from the content-addressed store, hash-verified

166 return self.get_test_set(normalization, cuda)
167
168 def get_label_and_idxes(self, cuda):
169 """
170 Return all labels and indexes.
171 """
172 if cuda:
173 return self.labels_torch.cuda(), self.idx_train_torch.cuda(), self.idx_val_torch.cuda(), self.idx_test_torch.cuda()
174 return self.labels_torch, self.idx_train_torch, self.idx_val_torch, self.idx_test_torch

Callers 1

train_new.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected