Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for writeStringToFile (0.29 sec)

  1. 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)
  2. platforms/documentation/docs/src/snippets/workerApi/md5CustomTask/groovy/buildSrc/src/main/java/CreateMD5.java

                    Thread.sleep(3000); // <4>
                    Provider<RegularFile> md5File = getDestinationDirectory().file(sourceFile.getName() + ".md5");  // <5>
                    FileUtils.writeStringToFile(md5File.get().getAsFile(), DigestUtils.md5Hex(stream), (String) null);
                } catch (Exception e) {
                    throw new RuntimeException(e);
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. 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)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/PCHUtils.java

            File headerFileCopy = new File(generatedSourceDir, sourceFile.getName());
            try {
                FileUtils.copyFile(sourceFile, headerFileCopy);
                FileUtils.writeStringToFile(generatedSource, "#include \"".concat(headerFileCopy.getName()).concat("\""), StandardCharsets.UTF_8);
                return generatedSource;
            } catch (IOException e) {
                throw new UncheckedIOException(e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.3K 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)
  7. 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)
  8. 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)
  9. 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)
  10. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

        }
    
        public TestFile writelns(String... lines) {
            return writelns(Arrays.asList(lines));
        }
    
        public TestFile write(Object content) {
            try {
                FileUtils.writeStringToFile(this, content.toString(), StandardCharsets.UTF_8);
            } catch (IOException e) {
                throw new RuntimeException(String.format("Could not write to test file '%s'", this), e);
            }
            return this;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top