Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeStringToFile (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top