MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / ids_list

Method ids_list

deepspeed/runtime/engine.py:2411–2412  ·  view source on GitHub ↗
(group)

Source from the content-addressed store, hash-verified

2409 param_id = id(param)
2410
2411 def ids_list(group):
2412 return [id(param) for param in group]
2413
2414 occurrence = sum([
2415 ids_list(group['params']).count(param_id) if param_id in ids_list(group['params']) else 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected