Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Brune (0.16 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      }
      file_signature_map_[filename] = file_signature;
      return true;
    }
    
    size_t RamFileBlockCache::CacheSize() const {
      absl::MutexLock lock(&mu_);
      return cache_size_;
    }
    
    void RamFileBlockCache::Prune() {
      while (!stop_pruning_thread_.WaitForNotificationWithTimeout(
          absl::Microseconds(1000000))) {
        absl::MutexLock lock(&mu_);
        uint64_t now = timer_seconds_();
        while (!lra_list_.empty()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      EXPECT_EQ(out, a);
      EXPECT_EQ(calls, 5);
      TF_EXPECT_OK(ReadCache(&cache, "a", 8, n, &out));
      EXPECT_EQ(out, A);
      EXPECT_EQ(calls, 6);
    }
    
    TEST(RamFileBlockCacheTest, Prune) {
      int calls = 0;
      auto fetcher = [&calls](const string& filename, size_t offset, size_t n,
                              char* buffer, TF_Status* status) -> int64_t {
        calls++;
        memset(buffer, 'x', n);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

          pruning_thread_.reset(
              TF_StartThread(&thread_options, "TF_prune_FBC", PruneThread, this));
        }
        TF_VLog(1, "GCS file block cache is %s.\n",
                (IsCacheEnabled() ? "enabled" : "disabled"));
      }
    
      ~RamFileBlockCache() {
        if (pruning_thread_) {
          stop_pruning_thread_.Notify();
          // Destroying pruning_thread_ will block until Prune() receives the above
          // notification and returns.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
Back to top