DenseElementsAttr is used to store tensor data, which in some cases can become extremely large(100s of mb). In these cases it is much more efficient to format the data as a string of hex values instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/IR/AsmPrinter.cpp | ||
---|---|---|
66 | Can we make it an int and use -1 to disable? | |
70 | I'd lower this to 100 or 500 or something like this: the idea of the threshold to me is that this is the number at which it is unlikely someone really care about reading individual value from the IR text file manually (and they can just round-trip with a higher threshold to get them) |
Can we make it an int and use -1 to disable?