You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add ONNX_MLIR_ENABLE_ONLY_ONNX_DIALECT CMake flag for minimal builds
- Decouple src/Dialect/Mlir from Compiler and Krnl dependencies
- Add test-onnx-to-mlir utility for ONNX model import testing
- Include documentation and CI workflow for minimal build
- Exclude non-essential interfaces and third-party dependencies
This enables building only the ONNX dialect and essential utilities
without the full onnx-mlir compiler stack, useful for projects that
only need ONNX dialect IR generation.
Signed-off-by: Anurag <[email protected]>
This document describes how to build a minimal subset of ONNX-MLIR that exposes only the ONNX dialect and the minimal helpers required to parse ONNX models and produce ONNX dialect MLIR.
6
+
7
+
### Rationale
8
+
9
+
Some projects want to import the ONNX dialect IR without bringing the full onnx-mlir stack (lowering passes, Krnl dialect, runtime). The CMake option `ONNX_MLIR_ENABLE_ONLY_ONNX_DIALECT` enables such a build.
10
+
11
+
### What gets built
12
+
13
+
When `-DONNX_MLIR_ENABLE_ONLY_ONNX_DIALECT=ON` is set, the following subdirectories are included:
0 commit comments