Skip to content

Support expand_dims #56774

@asi1024

Description

@asi1024

🚀 Feature

Support torch.expand_dims.
(cc: @mruberry, @rgommers, @emcastillo and @kmaehashi)

Motivation and Pitch

To enhance the compatibility with NumPy’s interface (c.f. #38349).

Currently PyTorch supports the same functionality with a different function name: torch.unsqueeze, but I would like to support an alias to improve compatibility with NumPy and Python array API standard (#54581).

References

cc @mruberry @rgommers @heitorschueroff @pmeier

Metadata

Metadata

Assignees

No one assigned

    Labels

    function requestA request for a new function or the addition of new arguments/modes to an existing function.module: numpyRelated to numpy support, and also numpy compatibility of our operatorsmodule: 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