You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace deprecated torch._check_is_size with torch._check (#1940)
PyTorch's _check_is_size is being removed in a future release per
pytorch/pytorch#169400 ("Use _check(i >= 0) instead"). This replaces
all 23 occurrences with the recommended torch._check pattern, matching
the existing torch._check style already used elsewhere in these files.
Affected files (23 occurrences):
- bitsandbytes/_ops.py (8)
- bitsandbytes/backends/triton/ops.py (5)
- bitsandbytes/backends/default/ops.py (4)
- bitsandbytes/backends/cpu/ops.py (3)
- bitsandbytes/backends/cuda/ops.py (2)
- bitsandbytes/backends/hpu/ops.py (1)
torch._check is available in all torch >= 2.0; bitsandbytes requires
torch >= 2.2 per pyproject.toml, so no backwards-compat shim is needed.
Co-authored-by: neil-the-nowledgable <254185769+neil-the-nowledgable@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments