Depending on where the 0 dimension is within the shape, the parser will currently reject .mlir generated by the printer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D83445
[mlir] Print 0 element DenseElementsAttr as dense<> to fix parser bugs with expected shape. ClosedPublic Authored by rriddle on Jul 8 2020, 5:44 PM.
Details Summary Depending on where the 0 dimension is within the shape, the parser will currently reject .mlir generated by the printer.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 8 2020, 6:00 PM Closed by commit rG24aa4efffd83: [mlir] Print 0 element DenseElementsAttr as dense<> to fix parser bugs with… (authored by rriddle). · Explain WhyJul 8 2020, 6:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 276615 mlir/lib/IR/AsmPrinter.cpp
mlir/lib/Parser/AttributeParser.cpp
mlir/test/IR/parser.mlir
|