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

Method ids_list

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

Source from the content-addressed store, hash-verified

2356 param_id = id(param)
2357
2358 def ids_list(group):
2359 return [id(param) for param in group]
2360
2361 occurrence = sum([
2362 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