Skip to content

Conversation

@cakedev0
Copy link

Fixes: #389

To test sort stability of array libraries, you usually need arrays of more than 16 elements (because for less than 16, libs often default to an inherently stable sort, even for unstable algorithms).

Because of this was not tested properly, a gap in array-api-compat was not detected by this test suite. See issue data-apis/array-api-compat#354. You can try running:

ARRAY_API_TESTS_VERSION="2024.12" ARRAY_API_TESTS_MODULE=array_api_compat.torch pytest array_api_tests/test_sorting_functions.py

with this branch of array-api-tests to see it indeed fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

argsort: default value of stable not tested

1 participant