- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for cache1 (0.18 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
tf_gcs_filesystem::ExpiringLRUCache<int> cache2(1, 4); cache2.Insert("a", 1); cache2.Insert("b", 2); cache2.Insert("c", 3); cache2.Insert("d", 4); EXPECT_TRUE(cache2.Lookup("a", &value)); EXPECT_EQ(value, 1); EXPECT_TRUE(cache2.Lookup("b", &value)); EXPECT_EQ(value, 2); EXPECT_TRUE(cache2.Lookup("c", &value)); EXPECT_EQ(value, 3); EXPECT_TRUE(cache2.Lookup("d", &value)); EXPECT_EQ(value, 4);
C++ - Registered: Tue Apr 30 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/ram_file_block_cache_test.cc
calls.push_back(block_size); // Cache miss followed by cache hit. TF_EXPECT_OK(ReadCache(&cache, "", block_size, 1, &out)); TF_EXPECT_OK(ReadCache(&cache, "", block_size, 1, &out)); calls.push_back(2 * block_size); // Cache miss followed by cache hit. Causes eviction of LRU element. TF_EXPECT_OK(ReadCache(&cache, "", 2 * block_size, 1, &out));
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) -
ci/official/envs/disk_cache
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 01 03:21:19 GMT 2024 - 1023 bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
new_entry->timestamp = timer_seconds_(); block_map_.emplace(std::make_pair(key, new_entry)); return new_entry; } // Remove blocks from the cache until we do not exceed our maximum size. void RamFileBlockCache::Trim() { while (!lru_list_.empty() && cache_size_ > max_bytes_) { RemoveBlock(block_map_.find(lru_list_.back())); } } /// Move the block to the front of the LRU list if it isn't already there.
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) -
ci/official/containers/linux_arm64/devel.usertools/aarch64.bazelrc
# This bazelrc can build a CPU-supporting TF package. # Convenient cache configurations # Use a cache directory mounted to /tf/cache. Very useful! build:sigbuild_local_cache --disk_cache=/tf/cache # Use the public-access TF DevInfra cache (read only) build:sigbuild_remote_cache --remote_cache="https://storage.googleapis.com/tensorflow-devinfra-bazel-cache/manylinux2014" --remote_upload_local_results=false
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Tue Nov 21 12:25:39 GMT 2023 - 5.8K bytes - Viewed (0) -
ci/official/bisect.sh
Shell Script - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Thu Feb 01 03:21:19 GMT 2024 - 1.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
// Since `p` is allocated by plugin, free it using plugin's method. plugin_memory_free_(p); return ret; } void ModularFileSystem::FlushCaches(TransactionToken* token) { if (ops_->flush_caches != nullptr) ops_->flush_caches(filesystem_.get()); } Status ModularFileSystem::SetOption(const std::string& name, const std::vector<string>& values) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(), status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); for (bool clear_cache : {true, false, true}) { if (clear_cache) { TFE_ContextClearCaches(ctx); } TFE_TensorHandle* m = TestMatrixTensorHandle(ctx); TFE_TensorHandle* retval[1] = {nullptr}; int num_retvals = 1;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
auto it = cache_.find(key); if (it == cache_.end()) { return false; } lru_list_.erase(it->second.lru_iterator); cache_.erase(it); return true; } /// The maximum age of entries in the cache, in seconds. A value of 0 means /// that no entry is ever placed in the cache. const uint64_t max_age_; /// The maximum number of entries in the cache. A value of 0 means there is no
C - Registered: Tue Apr 30 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/ram_file_block_cache.h
auto ram_file_block_cache = static_cast<RamFileBlockCache*>(param); ram_file_block_cache->Prune(); } private: /// The size of the blocks stored in the LRU cache, as well as the size of the /// reads from the underlying filesystem. const size_t block_size_; /// The maximum number of bytes (sum of block sizes) allowed in the LRU cache. const size_t max_bytes_;
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)