- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetLocalTmpFileName (0.26 sec)
-
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) -
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) -
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) -
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)