Skip to content

Operator torch._ops.aten.linalg_vector_norm.default is not Aten Canonical #3566

@nbansal90

Description

@nbansal90

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: exirIssues related to Export IR and the code under exir/module: kernelsIssues related to kernel libraries and utilities, and code under kernels/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions