Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc

    namespace stablehlo::quantization::io {
    
    absl::StatusOr<std::string> GetLocalTmpFileName(tsl::Env* const env) {
      std::string tmp_fname{};
      if (!env->LocalTempFilename(&tmp_fname)) {
        return absl::InternalError("Failed to create tmp file name.");
      }
    
      return tmp_fname;
    }
    
    absl::StatusOr<std::string> GetLocalTmpFileName() {
      return GetLocalTmpFileName(tsl::Env::Default());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h

    // (path) and doesn't actually creates the file.
    absl::StatusOr<std::string> GetLocalTmpFileName(tsl::Env* env);
    
    // Generates a unique local tmp file name. This function only generates the name
    // (path) and doesn't actually creates the file. The default environment
    // `tsl::Env::Default` is used to generate the name.
    absl::StatusOr<std::string> GetLocalTmpFileName();
    
    // Creates a temporary directory on an environment defined by the implementation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc

     private:
      // This is the part that essentially breaks the `GetLocalTmpFileName` function
      // because it doesn't provide any available temp dirs.
      void GetLocalTempDirectories(std::vector<tsl::string>* list) override {}
    };
    
    TEST(IoTest, GetLocalTmpFileNameGivesValidFileName) {
      absl::StatusOr<std::string> tmp_file_name = GetLocalTmpFileName();
    
      ASSERT_THAT(tmp_file_name, IsOk());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 03:28:15 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

    using ::stablehlo::quantization::ReadStatistics;
    using ::stablehlo::quantization::RepresentativeDatasetConfig;
    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::stablehlo::quantization::io::GetLocalTmpFileName;
    using ::stablehlo::quantization::io::ListDirectory;
    using ::tensorflow::AssetFileDef;
    using ::tensorflow::SignatureDef;
    using ::tensorflow::calibrator::CalibrationStatistics;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc

    using ::mlir::tf_saved_model::kTfSavedModelInitializerInitType;
    using ::mlir::tf_saved_model::kTfSavedModelInitializerRestoreType;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::stablehlo::quantization::io::GetLocalTmpFileName;
    using ::tensorflow::AssetFileDef;
    using ::tensorflow::ConvertMlirToGraph;
    using ::tensorflow::FunctionDefLibrary;
    using ::tensorflow::FunctionLibraryDefinition;
    using ::tensorflow::Graph;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

    using ::stablehlo::quantization::PopulateDefaults;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::stablehlo::quantization::io::CreateTmpDir;
    using ::stablehlo::quantization::io::GetLocalTmpFileName;
    using ::tensorflow::quantization::PyFunctionLibrary;
    
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ImportAndPreprocessSavedModel(
        absl::string_view saved_model_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top