MCPcopy
hub / github.com/deepspeedai/DeepSpeed / get

Method get

deepspeed/compile/input_storage.py:165–178  ·  view source on GitHub ↗

Retrieve and materialize stored real inputs Returns: Materialized real inputs with actual tensors Raises: RuntimeError: If no inputs are stored

(self)

Source from the content-addressed store, hash-verified

163 self._has_data = True
164
165 def get(self) -> Any:
166 """
167 Retrieve and materialize stored real inputs
168
169 Returns:
170 Materialized real inputs with actual tensors
171
172 Raises:
173 RuntimeError: If no inputs are stored
174 """
175 if not self._has_data:
176 raise RuntimeError("No inputs stored in InputStorage")
177
178 return self._materialize_value(self._stored_inputs)
179
180 def has_data(self) -> bool:
181 """

Callers 15

is_env_setFunction · 0.45
get_env_if_setFunction · 0.45
modify_file_headerFunction · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
common.pyFile · 0.45
get_xdist_worker_idFunction · 0.45
set_accelerator_visibleFunction · 0.45

Calls 1

_materialize_valueMethod · 0.95

Tested by 10

check_equalFunction · 0.36
assert_fnFunction · 0.36
_config_dtypeFunction · 0.36
testMethod · 0.36
testMethod · 0.36
testMethod · 0.36
mainFunction · 0.36