Skip to content

iree-import-tf: How to get human-readable MLIR output? #18408

Answered by ScottTodd
mablinov asked this question in Q&A
Discussion options

You must be logged in to vote

The .mlir files generated there are in the MLIR bytecode format: https://mlir.llvm.org/docs/BytecodeFormat/. Looks like we still aren't setting the file extension to .mlirbc.

To convert to MLIR text format, either of these should work:

iree-ir-tool cp model.mlirbc -o model.mlir
iree-opt model.mlirbc > model.mlir

We should also update our documentation to include those.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mablinov
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