- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for empty (0.2 sec)
-
tensorflow/c/c_test_util.cc
const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0]; TF_Tensor* const* input_values_ptr = input_values_.empty() ? nullptr : &input_values_[0]; const TF_Output* outputs_ptr = outputs_.empty() ? nullptr : &outputs_[0]; TF_Tensor** output_values_ptr = output_values_.empty() ? nullptr : &output_values_[0]; TF_Operation* const* targets_ptr = targets_.empty() ? nullptr : &targets_[0];
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
*object = fname.substr(bucket_end + 1); if (object->empty() && !object_empty_ok) { TF_SetStatus(status, TF_INVALID_ARGUMENT, "GCS path doesn't contain an object name."); } } /// Appends a trailing slash if the name doesn't already have one. static void MaybeAppendSlash(std::string* name) { if (name->empty()) *name = "/"; else if (name->back() != '/')
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/env_test.cc
ASSERT_FALSE(stats.is_directory); ASSERT_GT(stats.mtime_nsec, 0); // Trying to delete a non-empty directory should fail. TF_DeleteDir(dirpath.c_str(), s); ASSERT_NE(TF_OK, TF_GetCode(s)) << "TF_DeleteDir unexpectedly succeeded with a non-empty directory " << dirpath; TF_DeleteFile(filepath.c_str(), s); ASSERT_TF_OK(s) << "TF_DeleteFile failed for " << filepath << ": "
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K 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/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 23 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 23 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
const char** ptr = nullptr; if (!strs.empty()) { ptr = new const char*[strs.size()]; for (size_t i = 0; i < strs.size(); ++i) { ptr[i] = strs[i].c_str(); } } return ptr; } // An explicit `num_opers` is needed so that we can distinguish between the // case of no operations specified (-1) and the case of an empty set of // operations specified (0).
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
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/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 23 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/eager/gradients.h
// once unless the tape is persistent) and produces the gradient of the target // tensors with respect to the source tensors. The output gradients are used // if not empty and not null. The result is populated with one tensor per // target element. Status ComputeGradient( AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> targets,
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Sep 26 10:27:05 GMT 2022 - 6.9K bytes - Viewed (0)