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

No handlers found: "aten::einsum" #17

Open
787629504 opened this issue Mar 12, 2022 · 4 comments
Open

No handlers found: "aten::einsum" #17

787629504 opened this issue Mar 12, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@787629504
Copy link

No handlers found: "aten::unfold"
No handlers found: "aten::split"
No handlers found: "aten::einsum".
No handlers found: "aten::permute".

hope to support these ops, thanks!

@zhijian-liu zhijian-liu added the enhancement New feature or request label Mar 18, 2022
@zhijian-liu zhijian-liu self-assigned this Mar 18, 2022
@zhijian-liu
Copy link
Owner

zhijian-liu commented Mar 18, 2022

Could you please provide an example model that contains aten::permute? Thank you!

@787629504
Copy link
Author

Thank you for your reply!

x = torch.randn(2, 3, 5)
x.size()
torch.Size([2, 3, 5])
x.permute(2, 0, 1).size()
torch.Size([5, 2, 3])

It seems to not require any multiplication and addition operations.
I have calculated flops using other calculation codes, thank you!

@zhijian-liu
Copy link
Owner

Thanks! I was trying to refer to aten::einsum. Do you have an example of that?

@787629504
Copy link
Author

The model in my code is a bit complex:

A = torch.randn(b,n,c,h,w,k)
B = torch.randn(b,n,c,h,w,k)
C = torch.einsum('bnchwk,bnchwk -> bnchw', A, B)
C.shape
torch.Size([b,n,c,h,w])

A simple example:

import torch
A = torch.randn(3, 4)
B = torch.randn(4, 5)
C = torch.einsum('ik,kj->ij', A, B)
C.shape
torch.Size([3, 5])

Thank you!

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

No branches or pull requests

2 participants