array-api-tests
array-api-tests copied to clipboard
Test device support
Basic device support should be tested. In particular, we can test things like whether mixing devices properly raises an exception in all functions (this would be useful for the array-api-strict library, which implements this but it currently isn't tested). We can also test things like that the output device is equal to the input device.
Cross-ref https://github.com/data-apis/array-api-strict/issues/134
https://github.com/scipy/scipy/pull/22756 for pattern on how to test device propagation from input to output
@tylerjereddy FYI