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

Method _get_param_shape_func

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

Source from the content-addressed store, hash-verified

5624 return buffer_names
5625
5626 def _get_param_shape_func(self, param):
5627 return param.ds_shape if hasattr(param, 'ds_id') else param.shape
5628
5629 def _get_param_fragment_func(self, param):
5630 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