Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetDumpDirFromEnvVar (0.71 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc

                                std::string* filepath, llvm::StringRef dirname) {
      std::string dir;
      if (!dirname.empty())
        dir = std::string(dirname);
      else
        dir = GetDumpDirFromEnvVar();
    
      if (dir.empty()) {
        return Status(absl::StatusCode::kInvalidArgument,
                      "(TF_DUMP_GRAPH_PREFIX not specified)");
      }
    
      if (dir == kCrashReproducerStdErr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 03:03:46 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h

    // Default is reading from TF_DUMP_GRAPH_PREFIX, and if the string is 'sponge'
    // read from TEST_UNDECLARED_OUTPUTS_DIR. Returns nullptr if the directory
    // cannot be determined and generates a warning message.
    std::string GetDumpDirFromEnvVar();
    
    // Dumps a raw string to a file and returns the file name used.
    //
    // 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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

    // Dumps the MLIR module to disk.
    // This require the TF_DUMP_GRAPH_PREFIX to be set to a path that exist (or can
    // be created).
    static void DumpModule(mlir::ModuleOp module, std::string file_prefix) {
      std::string prefix = GetDumpDirFromEnvVar();
      if (prefix.empty()) return;
    
      auto* env = tensorflow::Env::Default();
      auto status = env->RecursivelyCreateDir(prefix);
      if (!status.ok()) {
        LOG(WARNING) << "cannot create directory '" << prefix
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top