- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 38 for clean (0.27 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
RemoveFile_Locked(std::string(it->first.first)); } } } void RamFileBlockCache::Flush() { absl::MutexLock lock(&mu_); block_map_.clear(); lru_list_.clear(); lra_list_.clear(); cache_size_ = 0; } void RamFileBlockCache::RemoveFile(const std::string& filename) { absl::MutexLock lock(&mu_); RemoveFile_Locked(filename); }
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) -
tensorflow/c/experimental/gradients/tape/tape_operation.cc
// parent_op->Unref(); } Status TapeOperation::Reset(const char* op, const char* raw_device_name) { forward_op_.op_name = op; forward_op_.attrs.Reset(op); forward_op_.inputs.clear(); forward_op_.outputs.clear(); return parent_op_->Reset(op, raw_device_name); } const string& TapeOperation::Name() const { return parent_op_->Name(); } const string& TapeOperation::DeviceName() const {
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jun 07 01:53:35 GMT 2022 - 9K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
cache2.LookupOrCompute("a", &value, compute_func, &status); TF_EXPECT_OK(status.status); EXPECT_EQ(value, 5); EXPECT_EQ(num_compute_calls, 6); } TEST(ExpiringLRUCacheTest, Clear) { tf_gcs_filesystem::ExpiringLRUCache<int> cache(1, 4); cache.Insert("a", 1); cache.Insert("b", 2); cache.Insert("c", 3); cache.Insert("d", 4); int value = 0;
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
namespace tensorflow { namespace { Status ReadCache(tf_gcs_filesystem::RamFileBlockCache* cache, const string& filename, size_t offset, size_t n, std::vector<char>* out) { out->clear(); out->resize(n, 0); TF_Status status; auto bytes_transferred = cache->Read(filename, offset, n, out->data(), &status); if (bytes_transferred >= 0) { EXPECT_LE(bytes_transferred, 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) -
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/eager/c_api_experimental.h
TF_Buffer* value_buf, TF_Status* status); // Delete configuration key-value. If `key` is a directory, recursively clean up // all key-values under the path specified by `key`. TF_CAPI_EXPORT extern void TFE_DeleteConfigKeyValue(TFE_Context* ctx, const char* key,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/filesystem_interface.h
/// manages the lifetime of the buffer after the call. Thus, all callers of /// this method must take ownership of the returned pointer. /// /// The implementation should clean up paths, including but not limited to, /// removing duplicate `/`s, and resolving `..` and `.`. /// /// Plugins must not return `nullptr`. Returning empty strings is allowed. ///
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 17:36:54 GMT 2022 - 53.1K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_distributed_manager.h
bool reset_context, int keep_alive_secs, int64_t init_timeout_in_ms, int retries, bool clear_existing_contexts = false) = 0; // Initializes context for the local worker and no contexts will be created // for remote workers. Currently this only works for resetting context.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 2.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
} compute_func(key, value, status); if (TF_GetCode(status) == TF_OK) { InsertLocked(key, *value); } } /// Clear the cache. void Clear() { absl::MutexLock lock(&mu_); cache_.clear(); lru_list_.clear(); } /// Accessors for cache parameters. uint64_t max_age() const { return max_age_; } size_t max_entries() const { return max_entries_; }
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/eager/c_api_unified_experimental.cc
void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs, TF_Status* s) { unwrap(o)->expected_num_outputs = num_outputs; unwrap(o)->outputs.clear(); unwrap(o)->outputs.resize(num_outputs); } int TF_OutputListNumOutputs(TF_OutputList* o) { return unwrap(o)->outputs.size(); } TF_AbstractTensor* TF_OutputListGet(TF_OutputList* o, int i) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K bytes - Viewed (0)