MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cpu

Method cpu

bitsandbytes/nn/modules.py:750–751  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

748 return self
749
750 def cpu(self):
751 return self.to(device="cpu")
752
753 def cuda(self, device: Optional[int | device | str] = None, non_blocking: bool = False):
754 return self.to(device="cuda" if device is None else device, non_blocking=non_blocking)

Callers

nothing calls this directly

Calls 1

toMethod · 0.95

Tested by

no test coverage detected