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

Method _get_param_shape_func

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

Source from the content-addressed store, hash-verified

5528 return buffer_names
5529
5530 def _get_param_shape_func(self, param):
5531 return param.ds_shape if hasattr(param, 'ds_id') else param.shape
5532
5533 def _get_param_fragment_func(self, param):
5534 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