-
Notifications
You must be signed in to change notification settings - Fork 45
Wrong scalar type used in complex tests #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Actually this failure is happening all over the place, not just in the asarray tests
|
Sorry I can't seem to reproduce this, up-to-date on both this repo and $ ARRAY_API_TESTS_MODULE=torch ARRAY_API_TESTS_API_VERSION=2021.12 pytest array_api_tests/test_creation_functions.py::test_asarray_arrays
$ ARRAY_API_TESTS_MODULE=torch ARRAY_API_TESTS_API_VERSION=2022.12 pytest array_api_tests/test_creation_functions.py::test_asarray_arrays
$ ARRAY_API_TESTS_MODULE=array_api_compat.torch ARRAY_API_TESTS_API_VERSION=2021.12 pytest array_api_tests/test_creation_functions.py::test_asarray_arrays
$ ARRAY_API_TESTS_MODULE=array_api_compat.torch ARRAY_API_TESTS_API_VERSION=2022.12 pytest array_api_tests/test_creation_functions.py::test_asarray_arrays |
Is there a way to make hypothesis spit out one of those reproduce decorators for the failure? I'm using torch 2.0.0 and hypothesis 6.74.0. |
|
I'm getting failures with torch in the asarray tests like
From what I can tell, it is setting the scalar type as
float
with a complex array, so it is calling something likeThe tests are surprisingly flaky (e.g., when I add a print statement they often start passing), and they also don't really seem to shrink properly, which suggests to me that there's some issue in the strategies themselves, or maybe even in hypothesis itself. I haven't investigated further yet.
The text was updated successfully, but these errors were encountered: