MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / __getitem__

Method __getitem__

trainer/__init__.py:29–34  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

27 return len(self.data)
28
29 def __getitem__(self, index):
30 return (
31 self.data[index],
32 self.data[index],
33 'A cat holding a sign that says hello world',
34 )
35
36 dataset = DummyDataset()
37 train_loader = DataLoader(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected