Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ __getitem__
Method
__getitem__
ML/src/python/neuralforge/data/dataset.py:184–185 ·
view source on GitHub ↗
(self, idx: int)
Source
from the content-addressed store, hash-verified
182
return
len(self.dataset)
183
184
def
__getitem__(self, idx: int) -> Tuple[torch.Tensor, int]:
185
return
self.dataset[idx]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected