Commit 24fc3aa
Fix torch-incompatible assertions in TestViewCudaArrayInterfaceGPU
The _check_view method in TestViewCudaArrayInterfaceGPU was missed
during the tensor bridge refactor (#1894) and still used raw numpy
attributes (in_arr.size, in_arr.strides, in_arr.flags, etc.) that
don't work with torch tensors. Use the _arr_* helpers that #1894
added for torch/numpy compatibility.
Caught by the nightly optional-dependency CI (#1987).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f77e0c8 commit 24fc3aa
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
354 | | - | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| |||
0 commit comments