MCPcopy Create free account
hub / github.com/pytorch/examples / __getitem__

Method __getitem__

distributed/ddp-tutorial-series/datautils.py:12–13  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

10 return self.size
11
12 def __getitem__(self, index):
13 return self.data[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected