Repository navigation
Commit ffac267
cuda.core: bump tensor bridge PyTorch upper-bound to 2.12 (#2099)
PyTorch 2.12 was released on ~May 14 2026. The version guard in
_torch_version_check() capped the AOTI tensor bridge at (2, 11), causing
_is_torch_tensor() to return False for torch tensors under 2.12. As a
result, torch tensors fell through to the generic CAI/DLPack paths and
raised:
BufferError: only CUDA Array Interface v3 or above is supported
The THPVariable struct layout and AtenTensorHandle aliasing are stable
across PyTorch 2.x minor releases. Extend the upper bound to (2, 12).
Closes #2089
Co-authored-by: Ralf W. Grosse-Kunstleve <[email protected]>1 parent 92994e4 commit ffac267
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments