MCPcopy
hub / github.com/deepspeedai/DeepSpeed / _sizes_all_same

Function _sizes_all_same

deepspeed/runtime/zero/mics_utils.py:197–203  ·  view source on GitHub ↗

all groups have same length

(groups)

Source from the content-addressed store, hash-verified

195
196
197def _sizes_all_same(groups):
198 """all groups have same length"""
199 all_same = True
200 for g in groups:
201 if len(g) != len(groups[0]):
202 return False
203 return all_same

Callers 1

create_mics_comm_groupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…