Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for enableDebugInfo (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/print.cc

    void PrintPass::runOnOperation() {
      llvm::sys::SmartScopedLock<true> instrumentationLock(mutex_);
      OpPrintingFlags flags =
          OpPrintingFlags().elideLargeElementsAttrs().enableDebugInfo(false);
      getOperation()->print(*os_, flags);
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreatePrintPass(raw_ostream* os) {
      return std::make_unique<PrintPass>(os);
    }
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 23:15:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.cc

    std::string SerializeMlirModule(mlir::ModuleOp module_op) {
      std::string serialized_mlir_module;
      llvm::raw_string_ostream os(serialized_mlir_module);
      mlir::OpPrintingFlags print_flags;
      print_flags.enableDebugInfo();
      module_op.print(os, print_flags);
      return std::move(os.str());
    }
    
    Status DeserializeMlirModule(llvm::StringRef serialized_mlir_module,
                                 mlir::MLIRContext* mlir_context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/dump_graph.h

      // pretty form is not parsable (so only for human readability).
      MlirDumpConfig& emit_location_information(bool pretty_form = false) {
        this->op_printing_flags.enableDebugInfo(/*enable=*/true, pretty_form);
        return *this;
      }
    
      MlirDumpConfig& emit_dialect(Dialect dialect) {
        this->dialect = dialect;
        return *this;
      }
    
      // Op printing flags.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 24 09:43:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc

    };
    
    }  // namespace
    
    void EnableIrPrinting(mlir::PassManager& pm,
                          absl::string_view file_name_prefix) {
      mlir::OpPrintingFlags flag{};
      flag.useLocalScope().elideLargeElementsAttrs().enableDebugInfo();
    
      // IR printing requires multithreading disabled.
      // Even if multithreading is already disabled, if we are executing within a
      // pass-manager,  disableMultithreading throws assertion fail. Below if
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:38:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

    }
    
    // Print operation with debug info (to get line number info for debugging)
    void dump(StringRef message, Operation* op) {
      llvm::dbgs() << message;
      op->print(llvm::dbgs(), OpPrintingFlags().enableDebugInfo(
                                  /*enable=*/true, /*prettyForm=*/true));
      llvm::dbgs() << "\n";
    }
    
    // Propagates device assignment inside a function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

      }
    
      // Export StableHLO MLIR as output
      std::string result;
      llvm::raw_string_ostream os(result);
      OpPrintingFlags printing_flags;
      if (debug_info) {
        printing_flags.enableDebugInfo();
      }
      if (elide_large_elements_attrs) {
        printing_flags.elideLargeElementsAttrs();
      }
      module.print(os, printing_flags);
      os.flush();
    
      output->os() << result;
      output->keep();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        module.print(os, flags);
      }
      return txt_module;
    }
    
    std::string MlirModuleToString(mlir::ModuleOp module, bool show_debug_info) {
      mlir::OpPrintingFlags flags;
      if (show_debug_info) flags.enableDebugInfo();
      return MlirModuleToString(module, flags);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top