- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for empty (0.18 sec)
-
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/modular_filesystem_test.cc
GTEST_SKIP() << "No filesystem registered: " << s; // First, test some interesting corner cases concerning empty URIs if (GetParam().empty()) { EXPECT_EQ(fs->TranslateName(""), ""); EXPECT_EQ(fs->TranslateName("/"), "/"); EXPECT_EQ(fs->TranslateName("//"), "/"); // Empty scheme also allows relative paths EXPECT_EQ(fs->TranslateName("a_file"), "a_file");
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/modular_filesystem.cc
if (ops_->set_filesystem_configuration == nullptr) { return errors::Unimplemented( "Filesystem does not support SetConfiguration()"); } if (values.empty()) { return errors::InvalidArgument( "SetConfiguration() needs number of values > 0"); } TF_Filesystem_Option option; memset(&option, 0, sizeof(option));
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/checkpoint_reader.cc
// Depending on whether this is a V2 ckpt, initializes "reader_" or // "v2_reader_". std::vector<string> v2_path; if (Env::Default()->GetMatchingPaths(MetaFilename(filename), &v2_path).ok() && !v2_path.empty()) { v2_reader_.reset( new BundleReader(Env::Default(), filename /* prefix to a V2 ckpt */)); if (!v2_reader_->status().ok()) { tsl::Set_TF_Status_from_Status(status, v2_reader_->status()); return;
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/windows/windows_filesystem.cc
#include "tensorflow/c/experimental/filesystem/filesystem_interface.h" #include "tensorflow/c/tf_status.h" // Implementation of a filesystem for POSIX environments. // This filesystem will support `file://` and empty (local) URI schemes. static void* plugin_memory_allocate(size_t size) { return calloc(1, size); } static void plugin_memory_free(void* ptr) { free(ptr); } // SECTION 1. Implementation for `TF_RandomAccessFile`
C++ - Registered: Tue Apr 09 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:21:15 GMT 2022 - 2.6K bytes - Viewed (0) -
tensorflow/c/c_api.cc
if (!status->status.ok()) return false; } return true; } // Create an empty tensor of type 'dtype'. 'shape' can be arbitrary, but has to // result in a zero-sized tensor. static TF_Tensor* EmptyTensor(TF_DataType dtype, const tensorflow::TensorShape& shape) { static char empty; int64_t nelems = 1; std::vector<int64_t> dims; dims.reserve(shape.dims());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
size_t n, char* buffer, TF_Status* status) -> int64_t { 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; };
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/c_api_internal.h
// value records whether the graph has been mutated since the corresponding // session has been run (this is detected in RecordMutation function). If the // string is empty, no mutation has occurred. Otherwise the string is a // description of the mutation suitable for returning to the user. // // Sessions are added to this map in TF_NewSession, and removed in // TF_DeleteSession.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat May 13 00:49:12 GMT 2023 - 7.6K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
TestHandleFromDLPack(status, ctx, {4, 1, 2}, {2, 0, 1}); TestHandleFromDLPack(status, ctx, {4, 3, 1}, {3, 1, 1}); TestHandleFromDLPack(status, ctx, {4, 3, 1}, {3, 1, 0}); // Test that empty tensors can have any strides. TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 2, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 1, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 0, 1});
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Jun 30 03:04:46 GMT 2023 - 4.4K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
const string gpu_device = GPUDeviceName(); // Skip this test if no GPU is available. if (gpu_device.empty()) return; RunMinTest(gpu_device, /*use_XLA=*/false); } TEST(CAPI, Session_Min_XLA_GPU) { const string gpu_device = GPUDeviceName(); // Skip this test if no GPU is available. if (gpu_device.empty()) return; RunMinTest(gpu_device, /*use_XLA=*/true); } TEST(CAPI, SessionPRun) {
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)