Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for writeStringToFile (0.37 sec)

  1. tensorflow/compiler/aot/compile.cc

      TF_RETURN_IF_ERROR(WriteStringToFile(env, flags.out_metadata_object,
                                           metadata_result.object_file_data));
      string header;
      TF_RETURN_IF_ERROR(GenerateHeader(codegen_opts, config, compile_result,
                                        metadata_result, &header));
      TF_RETURN_IF_ERROR(WriteStringToFile(env, flags.out_header, header));
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 08:28:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

                                    HasSubstr("Failed to create tmp dir")));
    }
    
    TEST(IoTest, WriteStringToFile) {
      const std::string dst_file_path =
          absl::StrCat(testing::TempDir(), "/tmp_file");
    
      const absl::Status write_status =
          WriteStringToFile(dst_file_path, "test_string");
      ASSERT_THAT(write_status, IsOk());
    
      auto* const env = tsl::Env::Default();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc

      // The overloaded function uses the default env.
      return CreateTmpDir(tsl::Env::Default());
    }
    
    absl::Status WriteStringToFile(const absl::string_view file_path,
                                   const absl::string_view data) {
      auto* env = tsl::Env::Default();
      return WriteStringToFile(env, std::string(file_path), data);
    }
    
    absl::StatusOr<std::string> ReadFileToString(
        const absl::string_view file_path) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

    namespace {
    
    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::QuantizationResult;
    using ::stablehlo::quantization::QuantizationResults;
    using ::stablehlo::quantization::io::WriteStringToFile;
    using ::tsl::protobuf::TextFormat;
    
    // Given a `quantized_func_name` that starts with `kQuantizedFuncPrefix`,
    // converts `kQuantizedFuncPrefix` to `kCompositeFuncPrefix`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h

    absl::StatusOr<std::string> CreateTmpDir();
    
    // Convenience function for writing string `data` to file without the need to
    // pass `tsl::Env` instance. Internally it uses the default `tsl::Env::Default`.
    absl::Status WriteStringToFile(absl::string_view file_path,
                                   absl::string_view data);
    
    // Convenience function for reading string data from file at `file_path` without
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/common/controller.cc

      BuildModel();
    }
    Controller::~Controller() { delete api_def_map_; }
    
    const void Controller::WriteFile(const string& file_path,
                                     const SourceCode& code) const {
      TF_CHECK_OK(WriteStringToFile(env_, file_path, code.Render())) << file_path;
    }
    
    const std::vector<OpSpec>& Controller::GetModelOps() const {
      return operators_;
    }
    
    void Controller::InitializeOpApi() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/tests/auto_clustering_test_helper.cc

      //
      // bazel test --test_strategy=local \
      //   tensorflow/compiler/jit/tests:auto_clustering_test
      bool update_golden = false;
      if (update_golden) {
        TF_RETURN_IF_ERROR(WriteStringToFile(
            Env::Default(), string(golden_summary_file_path), clustering_summary));
      }
    
      string golden_file_contents;
      TF_RETURN_IF_ERROR(ReadFileToString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 12:11:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/codegen_test.cc

      const bool update_golden = false;
      string golden_file_name =
          GetDataDependencyFilepath(tensorflow_relative_golden_file_name);
    
      if (update_golden) {
        TF_EXPECT_OK(
            WriteStringToFile(Env::Default(), golden_file_name, expected_contents));
      }
    
      string golden_file_contents;
      TF_ASSERT_OK(ReadFileToString(Env::Default(), golden_file_name,
                                    &golden_file_contents));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

            writeFile(content, destination, Charset.defaultCharset().name());
        }
    
        public static void writeFile(String content, File destination, String encoding) {
            try {
                FileUtils.writeStringToFile(destination, content, encoding);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java

        }
    
        public static void writeFile(String content, File destination, String encoding) {
            logDeprecation();
            try {
                FileUtils.writeStringToFile(destination, content, encoding);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top