Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ ds_shape
Function
ds_shape
deepspeed/utils/debug.py:110–114 ·
view source on GitHub ↗
(param)
Source
from the content-addressed store, hash-verified
108
109
110
def
ds_shape(param):
111
if
hasattr(param,
"ds_shape"
):
112
return
param.ds_shape
113
else
:
114
return
param.shape
115
116
117
def
debug_param2name_id(param):
Callers
3
debug_param2name_id_shape
Function · 0.85
debug_param2name_id_shape_device
Function · 0.85
debug_param2name_id_shape_status
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected