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

Function _cuda_device_of

bitsandbytes/functional.py:82–83  ·  view source on GitHub ↗
(a: torch.Tensor)

Source from the content-addressed store, hash-verified

80if torch.cuda.device_count() > 1:
81
82 def _cuda_device_of(a: torch.Tensor):
83 return torch.cuda.device_of(a)
84else:
85 import contextlib
86

Callers 8

_int8_linear_matmul_implFunction · 0.90
_Function · 0.90
_dequantize_4bit_implFunction · 0.90
_gemv_4bit_implFunction · 0.90
_gemm_4bit_kernel_implFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected