[all-commits] [llvm/llvm-project] 51bf5d: [mlir][Parser] Update DenseElementsAttr to print i...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Feb 20 14:45:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 51bf5d3cc19ac113de2ff185fb5bc2b99b8d89bc
      https://github.com/llvm/llvm-project/commit/51bf5d3cc19ac113de2ff185fb5bc2b99b8d89bc
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-02-20 (Thu, 20 Feb 2020)

  Changed paths:
    M mlir/include/mlir/IR/Attributes.h
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/IR/Attributes.cpp
    M mlir/lib/Parser/Parser.cpp
    A mlir/test/IR/dense-elements-hex.mlir
    M mlir/test/IR/invalid.mlir

  Log Message:
  -----------
  [mlir][Parser] Update DenseElementsAttr to print in hex when the number of elements is over a certain threshold.

Summary: 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.

Differential Revision: https://reviews.llvm.org/D74922




More information about the All-commits mailing list