-
Do we have any tools to visualize MLIR Files? LIke netron MLIR seams had this feature by Graphviz https://github.com/llvm/llvm-project/blob/main/mlir/lib/Transforms/ViewOpGraph.cpp |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For general MLIR, you found We had some bespoke tools at https://github.com/ScottTodd/iree-llvm-sandbox/tree/web-tools/web-tools The "Model Explorer" project: https://github.com/google-ai-edge/model-explorer is a modern approach to visualizing model structures. That supports MLIR, but some engineering work would be needed to teach it how to use our dialects / program structures. |
Beta Was this translation helpful? Give feedback.
For general MLIR, you found
--view-op-graph
. Some references for that https://mlir.llvm.org/docs/Passes/#-view-op-graph (that's generated from the source file, so not much new information).We had some bespoke tools at https://github.com/ScottTodd/iree-llvm-sandbox/tree/web-tools/web-tools
The "Model Explorer" project: https://github.com/google-ai-edge/model-explorer is a modern approach to visualizing model structures. That supports MLIR, but some engineering work would be needed to teach it how to use our dialects / program structures.