Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ is_map_style_dataset
Method
is_map_style_dataset
deepspeed/runtime/engine.py:2877–2878 ·
view source on GitHub ↗
(obj)
Source
from the content-addressed store, hash-verified
2875
2876
@staticmethod
2877
def
is_map_style_dataset(obj):
2878
return
hasattr(obj,
"__getitem__"
) and hasattr(obj,
"__len__"
)
2879
2880
@staticmethod
2881
def
is_iterable_style_dataset(obj):
Callers
1
deepspeed_io
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected