Skip to content

Named Tensor: Support -1 in unflatten. #28142

@srush

Description

@srush

Would be convenient to write:

tensor.unflatten("h", (("height", 8), ("q", -1))).shape

Similar to view.

cc @zou3519

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: named tensorNamed tensor supporttriagedThis 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