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

Reject repeated axes in parse_shape #159

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

dmitriy-serdyuk
Copy link

This implementation reuses the machinery of ParsedExpression to ensure that the patterns are parsed the same for all the functions in the API of einops.

I had to add a new option allow_underscore to the ParsedExpression.

Fixes #158

@dmitriy-serdyuk dmitriy-serdyuk changed the title Reject repeating axes in parse_shape Reject repeated axes in parse_shape Dec 13, 2021
@arogozhnikov arogozhnikov merged commit d40ca4c into arogozhnikov:master Dec 14, 2021
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

Successfully merging this pull request may close these issues.

[BUG] parse_shape should reject template with repeated axes
2 participants