Skip to content

Conversation

@neosunhan
Copy link
Collaborator

@neosunhan neosunhan commented Sep 4, 2022

Description

Implement array API according to the Python array API standard (version 2021.12)

See #774 for more information.

Changes proposed:

  • In conformance with the specification, the new standard-compliant API will be offered in a new namespace. This namespace can be accessed through a method on the array object.
xp = x.__array_namespace__(api_version='2020.10')

EDIT (Claudia): This PR also introduces a workflow to test compliance whenever a PR is reviewed.
EDIT2: workflow triggered manually, API version 2023.12

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Due Diligence

  • All split configurations tested
  • Multiple dtypes tested in relevant functions
  • Documentation updated (if needed)
  • Updated changelog.md under the title "Pending Additions"

Does this change modify the behaviour of other functions? If so, which?

no

skip ci

neosunhan added 30 commits June 14, 2022 18:51
This fixes a bug where negative numbers could be represented by uint8.
In cases involving large numbers where the `dtype` parameter was
unchanged, precision loss occurred due to intermediate casting
to float32 (in `__local_op`) before casting back to the original
`dtype`.

Fixed by not doing the intermediate casting.
Fixed bug in `ht.any` where `keepdim` argument was not working
when `axis=None` (same fix as 136e1b7)
f0a169b introduced a change in ht.abs where the dtype is not
promoted to float by default. This caused the tests to fail.
@ClaudiaComito
Copy link
Contributor

How are we going to keep track of progress here? i.e. what functions are missing from the coverage, what are being worked on, etc. @mtar @JuanPedroGHM

@mtar
Copy link
Collaborator

mtar commented Dec 10, 2024

The progress is tracked in the skips.txt and xfails.txt files themselves. At the moment

  • skips.txt contains tests that sometimes failed
  • xfail.txt comprises tests that always failed

when the test suite was running.
In the end they should only have tests that we want to skip or expect to fail.

@ClaudiaComito
Copy link
Contributor

The progress is tracked in the skips.txt and xfails.txt files themselves. At the moment

* `skips.txt` contains tests that sometimes failed

* `xfail.txt` comprises tests that always failed

when the test suite was running. In the end they should only have tests that we want to skip or expect to fail.

By tracking I mean something along these lines: pytorch/pytorch#58743

@github-actions
Copy link
Contributor

Thank you for the PR!

@JuanPedroGHM JuanPedroGHM modified the milestones: 1.6, 1.7.0 Mar 17, 2025
@JuanPedroGHM JuanPedroGHM linked an issue Apr 8, 2025 that may be closed by this pull request
@github-actions
Copy link
Contributor

Thank you for the PR!

@github-actions
Copy link
Contributor

Thank you for the PR!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Thank you for the PR!

@github-actions
Copy link
Contributor

github-actions bot commented Jul 7, 2025

Thank you for the PR!

@github-actions
Copy link
Contributor

Thank you for the PR!

@github-actions
Copy link
Contributor

Thank you for the PR!

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

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Array API compliance

5 participants