We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> import array_api_compat >>> array_api_compat.__version__ '1.11.2' >>> from array_api_compat import torch >>> torch.repeat Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'array_api_compat.torch' has no attribute 'repeat'
The text was updated successfully, but these errors were encountered:
Hm, interesting.
For torch, repeat should forward to repeat_interleave. Hopefully it's just an alias (it is under torch/_numpy at least).
repeat
repeat_interleave
torch/_numpy
Also worth noting that repeat is not tested for any backend:
$ git grep "test_repeat" cupy-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat dask-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat numpy-1-21-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat numpy-1-26-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat numpy-dev-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat numpy-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat torch-xfails.txt:array_api_tests/test_manipulation_functions.py::test_repeat
Git blame shows that testing was disabled in #166 without much explanation.
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: