- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for elideLargeElementsAttrs (0.26 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/string_util.cc
std::string OpAsString(mlir::Operation& op) { std::string out; llvm::raw_string_ostream op_stream(out); op.print(op_stream, mlir::OpPrintingFlags() .elideLargeElementsAttrs() .assumeVerified() .skipRegions() .printGenericOpForm()); return out; } std::string AttrAsString(mlir::Attribute& attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 23:18:40 UTC 2023 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/print.cc
PrintPass::PrintPass(const PrintPass& other) : PrintPass(other.os_) {} 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); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 12 23:15:17 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/flatbuffer_to_mlir.cc
std::string mlir_output; llvm::raw_string_ostream output_stream(mlir_output); // Dump MLIR with eliding large elements. module->print( output_stream, mlir::OpPrintingFlags().useLocalScope().elideLargeElementsAttrs()); return mlir_output; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:39:37 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_graph.h
// Tensorflow Graph Dialect kTFG, }; // The limit of element size that gets printed. MlirDumpConfig& elide_large_attributes(int large_element_limit = 16) { this->op_printing_flags.elideLargeElementsAttrs(large_element_limit); return *this; } // Enable printing of debug information. If 'pretty_form' is set to true, // debug information is printed in a more readable 'pretty' form but this
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Dec 24 09:43:29 UTC 2022 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/function/function.cc
namespace tensorflow { Status CompileTFMLIRToBEF(const TfrtFunctionCompileOptions& options, mlir::ModuleOp module, tfrt::BefBuffer* bef_buffer) { mlir::OpPrintingFlags print_flags; print_flags.elideLargeElementsAttrs(); if (VLOG_IS_ON(1)) { VLOG(1) << "Input TF Executor dialect:"; DumpMlirOpToFile("tf_to_tfrt_tf_executor_dialect", module); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 08:13:15 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo_translate.cc
} // Export StableHLO MLIR as output std::string result; llvm::raw_string_ostream os(result); OpPrintingFlags printing_flags; if (elide_large_elements_attrs) { printing_flags.elideLargeElementsAttrs(); } module.print(os, printing_flags); os.flush(); output->os() << result; output->keep(); return absl::OkStatus(); } } // namespace } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 22:58:42 UTC 2024 - 4.6K bytes - Viewed (0) -
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
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 05:38:57 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc
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(); return absl::OkStatus(); } tensorflow::Status ConvertTFToStableHLO(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:16:49 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/debug/debug.cc
mlir::OpPrintingFlags opPrintingFlags = mlir::OpPrintingFlags(); if (options.has_elide_elementsattrs_if_larger()) { opPrintingFlags.elideLargeElementsAttrs( options.elide_elementsattrs_if_larger()); } pm.enableIRPrinting(should_print_ir_before_pass, should_print_ir_after_pass, options.print_ir_module_scope(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 10 02:44:52 UTC 2024 - 11.8K bytes - Viewed (0)