Skip to content

Array API compatibility #649

@yaugenst-flex

Description

@yaugenst-flex

This is more of a question rather than an issue, but is there any plan or opinion on supporting Array API compatibility in autograd? Specifically, I'm wondering about the possibility of implementing methods like __array_function__ and __array_ufunc__ for ArrayBox, in a manner similar to the __array_namespace__ discussed in PR #647.

Adding such compatibility would enable autograd to seamlessly interoperate with libraries that follow the Array API standard, such as xarray, and potentially allow differentiating through operations involving those libraries. This would mean that automatic differentiation could potentially "just work" for any library that dispatches to the underlying array implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomeContributions towards resolving this issue are welcomeenhancementThis item is useful for the community and the user base and would serve as a fruitful addition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions