Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

      absl::MutexLock l(&block->mu);
      if (block->state != FetchState::FINISHED) {
        return true;  // No need to check for staleness.
      }
      if (max_staleness_ == 0) return true;  // Not enforcing staleness.
      return timer_seconds_() - block->timestamp <= max_staleness_;
    }
    
    std::shared_ptr<RamFileBlockCache::Block> RamFileBlockCache::Lookup(
        const Key& key) {
      absl::MutexLock lock(&mu_);
    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

        return n;
      };
      std::vector<char> out;
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      // Create a cache with max staleness of 2 seconds, and verify that it works as
      // expected.
      tf_gcs_filesystem::RamFileBlockCache cache1(
          8, 16, 2 /* max staleness */, fetcher,
          [&env]() { return env->NowSeconds(); });
      // Execute the first read to load the block.
    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/gcs_filesystem.cc

        max_bytes = static_cast<size_t>(value * 1024 * 1024);
      }
      const char* max_staleness_env = std::getenv(kMaxStaleness);
      if (max_staleness_env && absl::SimpleAtoi(max_staleness_env, &value)) {
        max_staleness = value;
      }
      TF_VLog(1, "GCS cache max size = %u ; block size = %u ; max staleness = %u",
              max_bytes, block_size, max_staleness);
    
      file_block_cache = std::make_unique<RamFileBlockCache>(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top