- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for LookupOrCompute (0.2 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
cache2.LookupOrCompute("b", &value, compute_func, &status); TF_EXPECT_OK(status.status); EXPECT_EQ(value, 1); EXPECT_EQ(num_compute_calls, 2); cache2.LookupOrCompute("c", &value, compute_func, &status); TF_EXPECT_OK(status.status); EXPECT_EQ(value, 2); EXPECT_EQ(num_compute_calls, 3); cache2.LookupOrCompute("d", &value, compute_func, &status);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 19:31:22 GMT 2020 - 7.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
/// found, call `compute_func`. If `compute_func` set `status` to `TF_OK`, /// store a copy of the output parameter in the cache, and another copy in /// `value`. void LookupOrCompute(const std::string& key, T* value, const ComputeFunc& compute_func, TF_Status* status) { if (max_age_ == 0) { return compute_func(key, value, status); }
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 19:31:22 GMT 2020 - 6.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
int64_t read = 0; if (is_cache_enabled) { absl::ReaderMutexLock l(&gcs_file->block_cache_lock); GcsFileStat stat; gcs_file->stat_cache->LookupOrCompute( path, &stat, [gcs_file, bucket, object](const std::string& path, GcsFileStat* stat, TF_Status* status) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0)