Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for create_tempdir (0.42 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

        self._input_saved_model_path = self.create_tempdir('input').full_path
        self._output_saved_model_path = self.create_tempdir('output').full_path
        # Extra output path occasionally used for comparing two different
        # quantized models.
        self._output_saved_model_path_2 = self.create_tempdir('output2').full_path
    
      def _extract_first_xla_call_module_op(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

        path_map = {'serving_default': dataset_path}
        repr_dataset.TfRecordRepresentativeDatasetSaver(path_map).save(
            {'serving_default': data_gen()}
        )
    
        calibration_data_dir = self.create_tempdir('calibration_data').full_path
        config = qc.QuantizationConfig(
            static_range_ptq_preset=qc.StaticRangePtqPreset(
                representative_datasets=[
                    qc.RepresentativeDatasetConfig(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

      ):
        input_type = dtypes.int64
        model = self._create_gather_model(input_type, use_variable)
        input_saved_model_path = self.create_tempdir('input').full_path
        saved_model_save.save(model, input_saved_model_path)
    
        tags = {tag_constants.SERVING}
        output_directory = self.create_tempdir().full_path
    
        quantization_options = quant_opts_pb2.QuantizationOptions(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

      absl::StatusOr<std::string> tmp_dir = CreateTmpDir();
    
      ASSERT_THAT(tmp_dir, IsOk());
    
      auto* const env = tsl::Env::Default();
      EXPECT_THAT(env->FileExists(*tmp_dir), IsOk());
    }
    
    TEST(IoTest, CreateTmpDirWhenInvalidPathReturnsInternalError) {
      TestEnvBrokenFileSystem test_env{};
      absl::StatusOr<std::string> tmp_dir = CreateTmpDir(&test_env);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc

    }
    
    absl::StatusOr<std::string> CreateTmpDir(tsl::Env* const env) {
      TF_ASSIGN_OR_RETURN(std::string tmp_dir, GetLocalTmpFileName(env));
    
      if (!env->RecursivelyCreateDir(tmp_dir).ok()) {
        return absl::InternalError(
            absl::StrFormat("Failed to create tmp dir: '%s'", tmp_dir));
      }
    
      return tmp_dir;
    }
    
    absl::StatusOr<std::string> CreateTmpDir() {
      // The overloaded function uses the default env.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/IoTestCase.java

          }
        }
    
        if (testDir == null) {
          // testdata resources aren't file:// urls, so create a directory to store them in and then
          // copy the resources to the filesystem as needed
          testDir = createTempDir();
        }
    
        return testDir;
      }
    
      /** Returns the file with the given name under the testdata directory. */
      protected final @Nullable File getTestFile(String name) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            }
        }
    
        public void markForDeletion(File toDelete) {
            filesToDelete.add(toDelete);
            warnAboutCleanup = true;
        }
    
        public synchronized File createTempDir() {
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                // ignore
            }
    
            File dir = new File(TEMP_DIR_PATH, baseFilename + System.currentTimeMillis());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h

    // failed.
    absl::StatusOr<std::string> CreateTmpDir(tsl::Env* env);
    
    // Creates a temporary directory and returns its path. Returns an InternalError
    // status if failed. The file system used will be the default environment
    // returned by `tsl::Env::Default`.
    absl::StatusOr<std::string> CreateTmpDir();
    
    // Convenience function for writing string `data` to file without the need to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

      TF_ASSIGN_OR_RETURN(const std::string calibration_saved_model_dir,
                          CreateTmpDir());
    
      std::string calibration_data_dir =
          config.calibration_options().calibration_data_dir();
      if (calibration_data_dir.empty()) {
        TF_ASSIGN_OR_RETURN(calibration_data_dir, CreateTmpDir());
      }
    
      TF_RETURN_IF_ERROR(ExportToSavedModel(
          module_op, calibration_data_dir,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/file-temp/src/main/java/org/gradle/api/internal/file/temp/DefaultTemporaryFileProvider.java

            try {
                // TODO: This is not a great paradigm for creating a temporary directory.
                // See http://guava-libraries.googlecode.com/svn/tags/release08/javadoc/com/google/common/io/Files.html#createTempDir%28%29 for an alternative.
                File tmpDir = TempFiles.createTempFile(prefix, suffix, dir);
                if (!tmpDir.delete()) {
                    throw new IOException("Failed to delete file: " + tmpDir);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 21:16:13 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top