Skip to content

Can MLIR files be visualized with tools like netron? #18948

Answered by ScottTodd
sexjun asked this question in Frontends
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sexjun
Comment options

Answer selected by sexjun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants