Skip to content

Commit 12bab05

Browse files
authored
Elide DenseResourceElementsAttr (onnx#2739)
* Elide ResourceDenseElemAttrs that is used for constant stickifies Signed-off-by: Tung D. Le <[email protected]> --------- Signed-off-by: Tung D. Le <[email protected]>
1 parent 9202207 commit 12bab05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Compiler/CompilerUtils.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,10 @@ static void outputModule(mlir::OwningOpRef<ModuleOp> &module, raw_ostream &os,
653653
mlir::OpPrintingFlags flags;
654654
if (preserveLocations)
655655
flags.enableDebugInfo();
656-
if (largeElementLimit >= 0)
656+
if (largeElementLimit >= 0) {
657657
flags.elideLargeElementsAttrs(largeElementLimit);
658+
flags.elideLargeResourceString(largeElementLimit);
659+
}
658660
module->print(os, flags);
659661
}
660662

0 commit comments

Comments
 (0)