Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permutation / rearrange operator? #298

Closed
Tracked by #575
fzimmermann89 opened this issue May 31, 2024 · 1 comment
Closed
Tracked by #575

permutation / rearrange operator? #298

fzimmermann89 opened this issue May 31, 2024 · 1 comment

Comments

@fzimmermann89
Copy link
Member

Would it make sense to add an rearrange operator for rearanging of axes and shapes?

The usages would be

  • move axes the the position a neural network would expect them
  • adapt axes between different operators

the difficulty would be how the handle 'a b ... -> (a b) ...' in the transpose.
I would suggest, that we require the einops axes_lengths to include enough information for both forward and transposed application.
So, in this example. either the size of a or b must be specified, otherwise the adjoint will fail (even though the forward operation does not need that information)

@fzimmermann89
Copy link
Member Author

#412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant