- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for invert (0.31 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4); cache1.Insert("a", 1); int value = 0; EXPECT_FALSE(cache1.Lookup("a", &value)); // Now set max_age = 1 and verify the LRU eviction logic. 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);
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/checkpoint_reader.cc
<< entry.InitializationErrorString(); for (int i = 0; i < entry.slices_size(); ++i) { const auto& slice_proto = entry.slices(i); CHECK(filtered_keys .insert(EncodeTensorNameSlice( string(v2_reader_->key()) /* full var's name */, TensorSlice(slice_proto))) .second); } }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
if (BlockNotStale(entry->second)) { return entry->second; } else { // Remove the stale block and continue. RemoveFile_Locked(key.first); } } // Insert a new empty block, setting the bookkeeping to sentinel values // in order to update them as appropriate. auto new_entry = std::make_shared<Block>(); lru_list_.push_front(key); lra_list_.push_front(key);
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/filesystem/plugins/gcs/ram_file_block_cache_test.cc
TF_Status* status) -> int64_t { EXPECT_EQ(n, block_size); EXPECT_EQ(offset % block_size, 0); EXPECT_EQ(calls.find(offset), calls.end()) << "at offset " << offset; calls.insert(offset); memset(buffer, 'x', n); TF_SetStatus(status, TF_OK, ""); return n; }; const uint32 block_count = 256; 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/c_api_experimental_test.cc
auto cluster = server_def.mutable_cluster(); auto client_job = cluster->add_job(); client_job->set_name("localhost"); int client_port = tensorflow::testing::PickUnusedPortOrDie(); client_job->mutable_tasks()->insert( {0, strings::StrCat("localhost:", client_port)}); server_def.set_job_name("localhost"); auto serialized = server_def.SerializeAsString();
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1) -
tensorflow/c/eager/c_api_test.cc
single_host_server_def.mutable_cluster(); tensorflow::JobDef* job_def = cluster_def->add_job(); job_def->set_name("client"); // Add a client. job_def->mutable_tasks()->insert( {0, tensorflow::strings::StrCat( "localhost:", tensorflow::testing::PickUnusedPortOrDie())}); tensorflow::JobDef* job_def2 = cluster_def->add_job(); job_def2->set_name("worker");
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/c_api_test.cc
for (int64_t i = 0; i < src.NumElements(); ++i) { src.flat<tstring>()(i) = data[i]; } TF_Tensor* dst = TF_TensorFromTensor(src, &status); ASSERT_TRUE(status.ok()) << status.message(); // Convert back to a C++ Tensor and ensure we get expected output. Tensor output; ASSERT_EQ(absl::OkStatus(), TF_TensorToTensor(dst, &output)) << line; ASSERT_EQ(src.NumElements(), output.NumElements()) << line;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
#if defined(PLATFORM_WINDOWS) // Make mkdir resolve to _mkdir to create the test temporary directory. #include <direct.h> #define mkdir(name, mode) _mkdir(name) // Windows defines the following macros to convert foo to fooA or fooW, // depending on the type of the string argument. We don't use these macros, so // undefine them here. #undef CopyFile #undef DeleteFile #undef TranslateName #endif // defined(PLATFORM_WINDOWS)
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { lru_list_.push_front(key); Entry entry{timer_seconds_(), value, lru_list_.begin()}; auto insert = cache_.insert(std::make_pair(key, entry)); if (!insert.second) { 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());
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) -
RELEASE.md
backward incompatibility with regard to your old checkpoints containing such RNN cells, in which case you can use the tool [checkpoint_convert script](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/rnn/python/tools/checkpoint_convert.py) to convert the variable names in your old checkpoints. * Many of the RNN functions and classes that were in the `tf.nn` namespace
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Mon Apr 29 19:17:57 GMT 2024 - 727.7K bytes - Viewed (8)