Skip to content

Can I convert from the ONNX dialect back to .onnx? #3017

Closed Answered by AlexandreEichenberger
oluwatimilehin asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you have 2 ways to do it.

One is in ONNX directly; while I have no direct experience with it, ONNX Runtime (ORT) does ingest a ONNX graph, can optimize it, and regenerate an ONNX output. You can use ORT as an example, I believe ONNX should have ways to do that directly using python tools. Obviously, the changes you will do are not using MLIR.

The other approach is to use onnx-mlir, which ingest ONNX representations and lower it to an MLIR ONNX dialect. We already have many optimizations/transforms that operate in this ONNX dialect within the ONNX-MLIR project. However, at this time, we do not have an ONNX exporter, only MLIR based exporters. While we have no bandwidth to create …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by oluwatimilehin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants