Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
class
DSGraphParamManager:
Callers
nothing calls this directly
Calls
1
reduce
Function · 0.50
Tested by
no test coverage detected