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

torch.aten.squeeze to linalg #572

Closed
Tracked by #347
saienduri opened this issue Mar 28, 2024 · 1 comment
Closed
Tracked by #347

torch.aten.squeeze to linalg #572

saienduri opened this issue Mar 28, 2024 · 1 comment

Comments

@saienduri
Copy link
Contributor

saienduri commented Mar 28, 2024

We are seeing following issues when lowering into torch.aten.squeeze in these models (mobilebert-uncased). Repro instructions can be found here::

mobilebert-uncased.default.pytorch.torch.mlir:4676:13: error: failed to legalize operation 'torch.aten.squeeze' that was explicitly marked illegal
    %3207 = torch.aten.squeeze %3206 : !torch.vtensor<[1,1,512],f32> -> !torch.vtensor<[1,512],f32>
            ^
mobilebert-uncased.default.pytorch.torch.mlir:4676:13: note: see current operation: %39331 = "torch.aten.squeeze"(%39330) : (!torch.vtensor<[1,1,512],f32>) -> !torch.vtensor<[1,512],f32>
iree-compile: /home/sai/iree/third_party/llvm-project/mlir/include/mlir/IR/UseDefLists.h:198: mlir::IRObjectWithUseList<mlir::OpOperand>::~IRObjectWithUseList() [OperandType = mlir::OpOperand]: Assertion `use_empty() && "Cannot destroy a value that still has uses!"' failed.
@AmosLewis AmosLewis changed the title Squeeze torch.aten.squeeze to linalg Apr 19, 2024
@aldesilv
Copy link
Collaborator

aldesilv commented May 23, 2024

resolved, upstream fix

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

3 participants