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

Method cuda

deepspeed/linear/quantization.py:113–116  ·  view source on GitHub ↗
(self, device=None, non_blocking=False)

Source from the content-addressed store, hash-verified

111 return new_instance
112
113 def cuda(self, device=None, non_blocking=False):
114 device = "cuda" if device is None else device
115 self.quantizer.to(device, non_blocking=non_blocking)
116 return self.to(device, non_blocking=non_blocking)
117
118 def to(self, *args, **kwargs):
119 """

Callers

nothing calls this directly

Calls 1

toMethod · 0.95

Tested by

no test coverage detected