- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for Hare (0.18 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
// first block of "a" expires, this block should also be removed because it // also belongs to file "a". TF_EXPECT_OK(ReadCache(&cache, "a", 8, 1, &out)); // Ensure that all blocks are in the cache (i.e. reads are cache hits). EXPECT_EQ(cache.CacheSize(), 24); EXPECT_EQ(calls, 3); TF_EXPECT_OK(ReadCache(&cache, "a", 0, 1, &out)); TF_EXPECT_OK(ReadCache(&cache, "b", 0, 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) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
// // Each filesystem implementation can be provided by DSOs, so we provide the // `--dsos` flag to specify a list of shared objects to be loaded in order. // If the flag is not used, no shared objects are loaded. // // Every filesystem provides support for accessing URIs of form // `[<scheme>://]<path>` where `<scheme>` is optional (if missing, we are
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/checkpoint_reader.cc
string key(v2_reader_->key()); (*var_to_shape_map)[key] = TensorShape(entry.shape()); (*var_to_data_type_map)[key] = DataType(entry.dtype()); } // The returned pointers are owned by the caller. return std::make_pair(std::move(var_to_shape_map), std::move(var_to_data_type_map)); } } // namespace checkpoint
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/expiring_lru_cache_test.cc
EXPECT_EQ(value, 2); EXPECT_TRUE(cache2.Lookup("c", &value)); EXPECT_EQ(value, 3); EXPECT_TRUE(cache2.Lookup("d", &value)); EXPECT_EQ(value, 4); // Insertion of "e" causes "a" to be evicted, but the other entries are still // there. cache2.Insert("e", 5); EXPECT_FALSE(cache2.Lookup("a", &value)); EXPECT_TRUE(cache2.Lookup("b", &value)); EXPECT_EQ(value, 2); EXPECT_TRUE(cache2.Lookup("c", &value)); EXPECT_EQ(value, 3);
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.cc
auto fcmp = block_map_.upper_bound(fmax); if (fcmp != block_map_.begin() && key < (--fcmp)->first) { return TF_SetStatus(status, TF_INTERNAL, "Block cache contents are inconsistent."); } } Trim(); return TF_SetStatus(status, TF_OK, ""); } void RamFileBlockCache::MaybeFetch(const Key& 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/eager/c_api_unified_experimental_test.cc
#include "tensorflow/core/platform/test.h" using tensorflow::Status; using tensorflow::string; using tensorflow::TF_StatusPtr; namespace tensorflow { namespace { // The tests are parameterized on: // - a string representing the tracing implementation: "mlir" or "graphdef". // - a boolean that when true enables TFRT as the execution engine. class UnifiedCAPI
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 19 21:44:52 GMT 2023 - 39.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
#include "tensorflow/c/tf_status_helper.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/file_system_helper.h" #include "tsl/platform/errors.h" // TODO(b/139060984): After all filesystems are converted, all calls to // methods from `FileSystem` will have to be replaced to calls to private // methods here, as part of making this class a singleton and the only way to // register/use filesystems.
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/c_api_test.cc
EXPECT_TRUE(absl::StrContains(s, expected)) << "'" << s << "' does not contain '" << expected << "'"; } // Returns the GPU device name if there is one (with arbitrary tie breaking if // there are more than one), or "" otherwise. string GPUDeviceName(TF_Session* session) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TF_Status* s = status.get();
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/eager/c_api_test.cc
if (TF_GetCode(status.get()) != TF_OK) { ADD_FAILURE() << tag << " -- " << TF_Message(status.get()); continue; } TFE_DeleteTensorHandle(hdevice2); // Ensure that the contents are the same! TF_Tensor* tcopy = TFE_TensorHandleResolve(hcopy, status.get()); TFE_DeleteTensorHandle(hcopy); if (TF_GetCode(status.get()) != TF_OK) { ADD_FAILURE() << tag; continue; }
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/gradients/nn_grad.cc
absl::Span<AbstractTensorHandle* const> grad_outputs, absl::Span<AbstractTensorHandle*> grad_inputs) override { /* Given upstream grad U and a BiasAdd: A + bias, the gradients are: * * dA = U * dbias = reduceSum(U, dims = channel_dim) */ AbstractTensorHandle* upstream_grad = grad_outputs[0]; DCHECK(upstream_grad);
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5.7K bytes - Viewed (0)