The internal of converting onnx file to mlir file #2894
FlintWangacc
started this conversation in
General
Replies: 1 comment
-
We don't have a manual per se. but the flow is intake onnx to a basic onnx, perform onnx shape inference, perform constant propagation/other operation substitution (e.g. convert old onset into newer ones), and then we start lowering to krnl->affine->llvm. You can see the process using a simple onnx file, e.g. add.mlir
and then compiling with flags that show you each step along the way:
Default is to generate binary ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using onnx-mlir to compile neural network to mlir. And then use iree-compile to lower mlir to vmfb file which runs on RISCV devices. Now I'm quite interested in the process that change onnx to mlir format. Is there some tutorial I can follow or some simple test case which can demonstrate this process? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions