MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _get_param_shape_func

Method _get_param_shape_func

deepspeed/runtime/engine.py:3138–3139  ·  view source on GitHub ↗
(self, param)

Source from the content-addressed store, hash-verified

3136 return buffer_names
3137
3138 def _get_param_shape_func(self, param):
3139 return param.ds_shape if hasattr(param, 'ds_id') else param.shape
3140
3141 def _get_param_fragment_func(self, param):
3142 return param.ds_tensor.detach().cpu() if hasattr(param, 'ds_id') else param.detach().cpu()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected