- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CreateFileForDumping (0.19 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc
raw_ostream& os() override { return string_stream; } private: std::string internal_str; llvm::raw_string_ostream string_stream; }; } // namespace Status CreateFileForDumping(llvm::StringRef name, std::unique_ptr<raw_ostream>* os, std::string* filepath, llvm::StringRef dirname) { std::string dir; if (!dirname.empty())
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/utils/data_dumper_logger_config.cc
void DataDumperLoggerConfig::DumpMlir( const std::string &filename, BridgeLoggerConfig::PrintCallbackFn print_callback) { std::unique_ptr<llvm::raw_ostream> os; std::string filepath; if (tensorflow::CreateFileForDumping(filename, &os, &filepath).ok()) { print_callback(*os); LOG(INFO) << "Dumped MLIR module to " << filepath; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 31 00:41:24 UTC 2023 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h
// // This will create a file name via prefixing `name` with the value of the // TF_DUMP_GRAPH_PREFIX environment variable if `dirname` is empty and // suffixing `name` with ".mlir". Status CreateFileForDumping(llvm::StringRef name, std::unique_ptr<llvm::raw_ostream>* os, std::string* filepath, llvm::StringRef dirname = "");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 04:50:13 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.cc
std::string name = llvm::formatv("{0,0+4}_mlir_bridge_{1}_{2}", log_counter++, pass_name, file_suffix); std::unique_ptr<llvm::raw_ostream> os; std::string filepath; if (CreateFileForDumping(name, &os, &filepath).ok()) { print_callback(*os); LOG(INFO) << "Dumped MLIR module to " << filepath; } } void BridgeLoggerConfig::printBeforeIfEnabled(mlir::Pass* pass,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 22:29:51 UTC 2023 - 4.8K bytes - Viewed (0)