Skip to content

Implement pack/unpack Ops #1553

@jessegrabowski

Description

@jessegrabowski

Description

This came up in the context of #1550 . There are many cases where we want to be able to ravel a sequence of inputs into a single vector, do some computation, then reshape the outputs back into the original shapes. As was pointed out in #1552, this is exactly what einops pack/unpack does.

It would be great for us to have similar functionality, using numeric axes instead of the letter-based API.

I also tagged this as xtensor, because it makes sense for this functionality to also have an xtensor implementation (allowing you to pack/unpack using named dims)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions