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

[ONNX] Dynamic size support for the onnx.GreaterOrEqual operator. #3129

Open
Peefy opened this issue Apr 10, 2024 · 1 comment
Open

[ONNX] Dynamic size support for the onnx.GreaterOrEqual operator. #3129

Peefy opened this issue Apr 10, 2024 · 1 comment

Comments

@Peefy
Copy link

Peefy commented Apr 10, 2024

Hello, community. I have an ONNX model used the onnx.GreaterOrEqual operator. It encountered an error while converting to Torch.

onnx.mlir:1045:13: error: failed to legalize operation 'torch.operator' that was explicitly marked illegal
    %1041 = torch.operator "onnx.GreaterOrEqual"(%1040, %292) : (!torch.vtensor<[?],si64>, !torch.vtensor<[],si64>) -> !torch.vtensor<[?],i1> 
            ^
cvr.onnx.mlir:1045:13: note: see current operation: %7976 = "torch.operator"(%7975, %585) <{name = "onnx.GreaterOrEqual"}> : (!torch.vtensor<[?],si64>, !torch.vtensor<[],si64>) -> !torch.vtensor<[?],i1>

I noticed it failed here. https://github.com/llvm/torch-mlir/blob/main/lib/Conversion/TorchOnnxToTorch/DefaultDomainGtoP.cpp#L550

image

Is there a plan in the community to support this conversion, or can I participate in the community to implement it? Thank you!

@Peefy Peefy changed the title [ONNX] Dynamic shape support for the onnx.GreaterOrEqual operator. [ONNX] Dynamic size support for the onnx.GreaterOrEqual operator. Apr 11, 2024
@Peefy
Copy link
Author

Peefy commented Apr 23, 2024

Hello, I would like to know about the support plan for this operator or if I can participate in implementing it.

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

1 participant