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

Method __post_init__

deepspeed/compile/graph_param.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 numel: int = field(init=False)
28
29 def __post_init__(self):
30 self.numel = reduce(lambda x, y: x * y, self.shape)
31
32
33class DSGraphParamManager:

Callers

nothing calls this directly

Calls 1

reduceFunction · 0.85

Tested by

no test coverage detected