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

Method __init__

deepspeed/compile/util.py:191–194  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

189class NodeValueOffloadHelper:
190
191 def __init__(self, device):
192 self.device = device
193 self.env_values: Dict[str, Argument] = {}
194 self.original_device: Dict[torch.Tensor, torch.device] = {}
195
196 def _to_cpu(self, v):
197 if torch.is_tensor(v):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected