Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for EnableIrPrinting (0.35 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

      void runOnOperation() override {
        mlir::MLIRContext* ctx = &getContext();
        mlir::ModuleOp module_op = getOperation();
        mlir::PassManager pm(ctx);
    
        pm.addPass(CreateNoOpPass());
    
        EnableIrPrinting(pm, "dump2");
    
        if (failed(pm.run(module_op))) {
          signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateParentPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc

      }
    
      // The configuration uses the default parameter values for
      // `PassManager::enableIRPrinting`, except for the `printModuleScope`
      // parameter, which is true by default. It is set to false to avoid the dump
      // file size becoming too large when the passes are running on a large model.
      pm.enableIRPrinting(std::make_unique<PrinterConfig>(
          file_name_prefix, /*print_module_scope=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:38:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks.cc

                              llvm::StringRef module_name) {
      // Print the whole module after each pass, which requires disabling
      // multi-threading as well.
      pm.getContext()->disableMultithreading();
      pm.enableIRPrinting(std::make_unique<::tensorflow::DataDumperLoggerConfig>(
          [module_name, dump_group_name](const std::string& pass_tag_name,
                                         mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 14:26:22 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.h

    namespace tensorflow {
    namespace quantization {
    
    // Enables IR printing for `pm`. When the passes are run, each pass will dump to
    // its own file with prefix `file_name_prefix`.
    void EnableIrPrinting(mlir::PassManager &pm,
                          absl::string_view file_name_prefix);
    
    // If verbosity level >= 1, this will dump intermediate IRs of passes to a file.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/debug/debug.cc

        sanitized.push_back(c);
      }
    
      return sanitized;
    }
    
    // Pass instrumentation that dumps MLIR based on the criteria specified by
    // `ir_dump_*` debug options.
    //
    // While `mlir::PassManager::enableIRPrinting` provides a similar functionality,
    // it is cumbersome to manually copy printed IRs and run them with `tf-opt`.
    // Also, long MLIR dumps are often truncated during printing. Instead, this
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 02:44:52 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.cc

                              llvm::StringRef module_name) {
      // Print the whole module after each pass, which requires disabling
      // multi-threading as well.
      pm.getContext()->disableMultithreading();
      pm.enableIRPrinting(std::make_unique<::tensorflow::DataDumperLoggerConfig>(
          [module_name, dump_group_name](const std::string& pass_tag_name,
                                         mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

        // Print the whole module after each pass which requires disabling
        // multi-threading as well.
        module_op.getContext()->disableMultithreading();
        tf2xla.enableIRPrinting(
            std::make_unique<::tensorflow::DataDumperLoggerConfig>(
                [module_name](const std::string& pass_tag_name,
                              mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
Back to top