MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / __getitem__

Method __getitem__

code/utils.py:317–318  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

315 return len(self.data)
316
317 def __getitem__(self, idx):
318 return self.data[idx], self.labels[idx]
319
320class AlignDataset(Dataset):
321 def __init__(self, features, label_emb, label):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected