Skip to content

Support torch.linalg.trace #62255

@asi1024

Description

@asi1024

🚀 Feature

Support torch.linalg.trace.
In addition to the features of torch.trace, axis1, axis2 and offset options are also wanted.
(cc: @mruberry, @rgommers, @emcastillo and @kmaehashi)

Motivation and Pitch

To enhance the compatibility with NumPy’s interface and Python array API standard.

Needs discussions

Should the axis name be axis1 and axis2, or dim0 and dim1? Both should be supported?

References

cc @mruberry @rgommers @pmeier @asmeurer @leofang @AnirudhDagar @asi1024 @emcastillo @kmaehashi @heitorschueroff

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: python array apiIssues related to the Python Array APItriagedThis 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