[all-commits] [llvm/llvm-project] 8a7791: [Printing] Add flag to not print resources.

Jeff Niu via All-commits all-commits at lists.llvm.org
Wed Aug 23 09:54:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a779174134d7d01c6835cb0254b8a6dbf419150
      https://github.com/llvm/llvm-project/commit/8a779174134d7d01c6835cb0254b8a6dbf419150
  Author: Mogball <jeff at modular.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/AsmPrinter.cpp
    A mlir/test/IR/pretty-resources-print.mlir

  Log Message:
  -----------
  [Printing] Add flag to not print resources.

Often times, large weights for ML models will be stored as resources in MLIR. It is sometimes advantageous to control whether to print these resources for debugging purposes. For example, some models contain very big weights with millions of characters in printed size, which may slow down whatever text editor you are using.

This diff adds a flag which allows users to disable printing resources in these scenarios.

Reviewed By: Mogball

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




More information about the All-commits mailing list