- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 102 for raw_stream (0.14 sec)
-
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc
/*custom_legalization_passes*/ {}); std::string pass_description; llvm::raw_string_ostream raw_stream(pass_description); pass_manager.printAsTextualPipeline(raw_stream); EXPECT_THAT(pass_description, HasSubstr(kLegalizeTfPass)); } TEST(CompileMlirUtil, DoesNotHaveLegalizationPass) { OpPassManager pass_manager;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 19:54:38 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc
TF_ASSERT_OK(CreateMlirModule("func_with_dead_ops.mlir")); TF_EXPECT_OK(ExportFromTensorflowDialectToExecutor(*mlir_module_)); std::string module_dump; llvm::raw_string_ostream raw_stream(module_dump); mlir_module_->print(raw_stream); EXPECT_EQ(compilation_status.Delta(kExportSuccess), 1); EXPECT_EQ(compilation_status.Delta(kExportFailed), 0); EXPECT_EQ(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 23:22:50 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc
{"TFL_Quint8", "TFLite quint8 type"}, }); return *entries; } void EmitDynamicRangeOp(std::vector<Record *> &defs, raw_ostream *ostream) { std::string dynamic_quant_kernel_support_regex = "bool GetDynamicRangeQuantKernelSupport() { return true; }"; raw_ostream &os = *ostream; std::vector<std::string> weight_only; llvm::sort(defs, LessRecord());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc
CrashReproducerStream(llvm::StringRef name, std::unique_ptr<llvm::raw_ostream> file) : name(name), ostream(std::move(file)) {} llvm::StringRef description() override { return name; } raw_ostream& os() override { return *ostream; } private: std::string name; std::unique_ptr<llvm::raw_ostream> ostream; }; // MLIR crash reproducer which reports failures to the crash analysis system.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 03:03:46 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/print.cc
class PrintPass : public impl::PrintPassBase<PrintPass> { public: explicit PrintPass(raw_ostream* os = nullptr); PrintPass(const PrintPass& other); void runOnOperation() override; private: llvm::sys::SmartMutex<true> mutex_; raw_ostream* os_; }; PrintPass::PrintPass(raw_ostream* os) { if (os) { os_ = os; } else { os_ = &llvm::errs(); } }
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/converter_gen.cc
return 2; } return 0; } static void EmitOptionBuilders(const RecordKeeper &record_keeper, const std::vector<Record *> &defs, raw_ostream *ostream) { raw_ostream &os = *ostream; const auto attr_type = record_keeper.getClass("Attr"); for (const auto *def : defs) { const int has_options = HasOptions(*def);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 23.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc
// each pass are still in-order. So we use pass_to_number_map_ to keep track // of the number for each pass. llvm::DenseMap<mlir::Pass*, std::unique_ptr<llvm::raw_ostream>> pass_to_dump_file_before_map_; llvm::DenseMap<mlir::Pass*, std::unique_ptr<llvm::raw_ostream>> pass_to_dump_file_after_map_; llvm::DenseMap<mlir::Pass*, int64_t> pass_to_number_map_; // Get the unique number for each pass.
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/debug/debug.cc
}; // Reproducer stream that emits a reproducer to the given `llvm::raw_ostream`. class ReproducerStream : public mlir::ReproducerStream { public: ReproducerStream(std::string name, std::unique_ptr<llvm::raw_ostream> os) : name_(std::move(name)), os_(std::move(os)) {} llvm::StringRef description() override { return name_; } llvm::raw_ostream& os() override { return *os_; } private: std::string name_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 10 02:44:52 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_graph.cc
#include "tensorflow/core/platform/path.h" #include "tensorflow/core/util/dump_graph.h" namespace tensorflow { namespace { // Simple raw_ostream that prints to a file (doesn't take ownership). struct WritableFileRawStream : public llvm::raw_ostream { explicit WritableFileRawStream(WritableFile* file) : file(file) { SetUnbuffered(); } ~WritableFileRawStream() override = default;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/debug/debug.h
==============================================================================*/ #ifndef TENSORFLOW_COMPILER_MLIR_LITE_DEBUG_DEBUG_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_DEBUG_DEBUG_H_ #include "llvm/Support/raw_ostream.h" #include "mlir/Pass/PassManager.h" // from @llvm-project #include "tensorflow/compiler/mlir/lite/debug/debug_options.pb.h" namespace tensorflow {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 05:31:44 UTC 2023 - 1.4K bytes - Viewed (0)