Skip to content

torch.(min|max)(..., dim=...) diverges from array API specification #58745

@pmeier

Description

@pmeier

The array API specification stipulates that torch.(max|min) must always return a tensor. If called with dim=... torch.return_types.(max|min) is returned instead.

cc @mruberry @rgommers @pmeier @asmeurer @leofang @heitorschueroff @asi1024

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: deprecationmodule: python array apiIssues related to the Python Array APImodule: reductionstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions