MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / __getitem__

Method __getitem__

functions.py:99–103  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

97 return len(self.occ)
98
99 def __getitem__(self, idx): # occ: batch, seq, node
100 output_occ = torch.transpose(self.occ[idx, :, :], 0, 1).to(self.device)
101 output_prc = torch.transpose(self.prc[idx, :, :], 0, 1).to(self.device)
102 output_label = self.label[idx, :].to(self.device)
103 return output_occ, output_prc, output_label
104
105
106class CreateFastDataset(Dataset):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected