Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tele-AI/Telechat
/ __len__
Method
__len__
deepspeed-telechat/utils/data/data_utils.py:44–46 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
42
self.dataset = chosen_dataset
43
44
def
__len__(self):
45
length = len(self.dataset)
46
return
length
47
48
def
__getitem__(self, idx):
49
return
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected