-
Notifications
You must be signed in to change notification settings - Fork 228
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
Operator torch._ops.aten.linalg_vector_norm.default is not Aten Canonical #3566
Comments
It's supposed to an aten core op. Probably this pull request can help pytorch/pytorch#125789 - we're trying to land it |
@cccclai that's great to know! Would appreciate it if this update could be pushed in as this is something which blocking my efforts to benchmark my model on an edge device. Thank you for your prompt response. |
Before the PR is merged, workaround is calling these following ops manually. The same idea will be applied to pytorch/pytorch#125789
|
Sure! I will give it a try. |
def decomp_linalg_vector_norm(a, order=2): Resolves the issue for me. Since, there is already a PR looking in to adding this as part of core aten operator. closing this. |
I am trying to create an Executorch Program using the steps mentioned at Setting Up Executorch. I made the changes successfully according to my model… But as I am executing the export script… I am getting this error:
torch._export.verifier.SpecViolationError: Operator torch._ops.aten.linalg_vector_norm.default is not Aten Canonical.
Looking back at my model, the only operator that might have caused this issue seems to be:
q = torch.nn.functional.normalize(q, dim=-1)
,But I am not sure how exactly I deal with this error and am stuck at this step.
What could be a probable workaround for this case? Any suggestions/help is appreciated!
Regards!
The text was updated successfully, but these errors were encountered: