- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for pop (0.13 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
lru_list_.erase(insert.first->second.lru_iterator); insert.first->second = entry; } else if (max_entries_ > 0 && cache_.size() > max_entries_) { cache_.erase(lru_list_.back()); lru_list_.pop_back(); } } bool DeleteLocked(const std::string& key) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { auto it = cache_.find(key); if (it == cache_.end()) { return false; }
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/ram_file_block_cache_test.cc
EXPECT_EQ(n, block_size); EXPECT_FALSE(calls.empty()) << "at offset = " << offset; if (!calls.empty()) { EXPECT_EQ(offset, calls.front()); calls.pop_front(); } memset(buffer, 'x', n); TF_SetStatus(status, TF_OK, ""); return n; }; const uint32 block_count = 2; tf_gcs_filesystem::RamFileBlockCache cache(
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) -
tensorflow/c/eager/tape.h
// Avoid infinite recursion. Whichever forward function we run, it'll end up // executing ops, and we don't want to watch those with this accumulator. call_state_.emplace(nullptr, true); auto pop_call_state = gtl::MakeCleanup([this] { this->call_state_.pop(); }); std::vector<Gradient*> forward_grads; if (forward_function == nullptr) { // We have no special-cased forward gradient. Fall back to running the
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Tue Apr 02 12:40:29 GMT 2024 - 47.2K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
rng_val_ = distribution(gen); } static void SetCloudPath(const std::string& cloud_path) { cloud_path_ = cloud_path; if (cloud_path_.back() == '/') cloud_path_.pop_back(); } static void SetTmpDir(const std::string& tmp_dir) { tmp_dir_ = tmp_dir.empty() ? ::testing::TempDir() : tmp_dir; } protected: Env* env_; private:
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0)