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

Method _get_param_shape_func

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

Source from the content-addressed store, hash-verified

5723 return buffer_names
5724
5725 def _get_param_shape_func(self, param):
5726 return param.ds_shape if hasattr(param, 'ds_id') else param.shape
5727
5728 def _get_param_fragment_func(self, param):
5729 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