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

ein.array cannot compute the diagonal of non-square tensors (DimensionBindError: Dim 'dim' previously bound to a dimension of size 3 cannot bind to a dimension of size 4) #30

Open
JasonGross opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
engineering priority: low Non-blocking, purely "nice-to-have"

Comments

@JasonGross
Copy link
Owner

import gbmi.utils.ein as ein
import torch

foo = torch.randn(2, 3, 4, 5)
bar = ein.array(lambda q_tok, max_tok: foo[q_tok, max_tok, max_tok, 0], sizes=[foo.shape[0], foo.shape[1]])
# DimensionBindError: Dim 'dim' previously bound to a dimension of size 3 cannot bind to a dimension of size 4
@JasonGross JasonGross added engineering priority: low Non-blocking, purely "nice-to-have" labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering priority: low Non-blocking, purely "nice-to-have"
Projects
None yet
Development

No branches or pull requests

2 participants