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

Failed to legalize operation onnx.Transpose. #822

Closed
vinayakdsci opened this issue Sep 9, 2024 · 1 comment
Closed

Failed to legalize operation onnx.Transpose. #822

vinayakdsci opened this issue Sep 9, 2024 · 1 comment
Assignees

Comments

@vinayakdsci
Copy link

vinayakdsci commented Sep 9, 2024

The ONNX operation onnx.Transpose fails with failed to legalize operation 'onnx.Transpose' during lowering, as reported in #812.

module {
  func.func @main_graph(%arg0: !torch.vtensor<[1,3,224,224],f32>, %arg1:!torch.vtensor<[],f32>) -> !torch.vtensor<[],f32>  attributes {torch.onnx_meta.ir_version = 8 : si64, torch.onnx_meta.opset_version = 17 : si64, torch.onnx_meta.producer_name = "pytorch", torch.onnx_meta.producer_version = "2.1.0"} {
    %202 = torch.operator "onnx.Transpose"(%arg1) {torch.onnx.perm = [3 : si64, 1 : si64, 2 : si64, 0 : si64, 4 : si64]} : (!torch.vtensor<[],f32>) -> !torch.vtensor<[],f32> 
    return %202 : !torch.vtensor<[],f32>
   }
}
@zjgarvey
Copy link
Collaborator

I'm going to close this issue, as it was likely a result of missing shape inference on import.

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

2 participants