Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
80
if
torch.cuda.device_count() > 1:
81
82
def
_cuda_device_of(a: torch.Tensor):
83
return
torch.cuda.device_of(a)
84
else
:
85
import
contextlib
86
Callers
8
_int8_linear_matmul_impl
Function · 0.90
_
Function · 0.90
_dequantize_blockwise_impl
Function · 0.90
_dequantize_4bit_impl
Function · 0.90
_gemv_4bit_impl
Function · 0.90
_gemm_4bit_kernel_impl
Function · 0.90
_optimizer_update_32bit_impl
Function · 0.90
_optimizer_update_8bit_blockwise_impl
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected