- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for children (0.22 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem.cc
char** children = nullptr; const int num_children = ops_->get_children(filesystem_.get(), translated_name.c_str(), &children, plugin_status.get()); if (num_children >= 0) { for (int i = 0; i < num_children; i++) { result->push_back(std::string(children[i])); plugin_memory_free_(children[i]); } plugin_memory_free_(children); }
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/experimental/filesystem/modular_filesystem_test.cc
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/env_test.cc
TF_StringStream* children = TF_GetChildren(dirpath.c_str(), s); ASSERT_TF_OK(s) << "TF_GetChildren failed for " << dirpath; const char* childpath; ASSERT_TRUE(TF_StringStreamNext(children, &childpath)); ASSERT_EQ(::tensorflow::string(childpath), "somefile.txt"); // There should only be one file in this directory. ASSERT_FALSE(TF_StringStreamNext(children, &childpath)); ASSERT_EQ(childpath, nullptr);
C++ - Registered: Tue Apr 30 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/gcs_filesystem.cc
// at most two children for the prefix to detect if a directory is empty. auto gcs_file = static_cast<GCSFile*>(filesystem->plugin_filesystem); auto childrens = GetChildrenBounded(gcs_file, path, 2, true, true, status); if (TF_GetCode(status) != TF_OK) return; if (childrens.size() > 1 || (childrens.size() == 1 && !childrens[0].empty())) return TF_SetStatus(status, TF_FAILED_PRECONDITION,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/env.h
// by TF_StringStreamNext are invalid after this call. TF_CAPI_EXPORT extern void TF_StringStreamDone(TF_StringStream* list); // Retrieves the list of children of the given directory. You can iterate // through the list with TF_StringStreamNext. The caller is responsible for // freeing the list (see TF_StringStreamDone).
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat Jan 09 02:53:27 GMT 2021 - 9.6K bytes - Viewed (0) -
tensorflow/c/env.cc
} TF_StringStream* TF_GetChildren(const char* dirname, TF_Status* status) { auto* children = new std::vector<::tensorflow::string>; TF_SetStatus(status, TF_OK, ""); ::tensorflow::Set_TF_Status_from_Status( status, ::tensorflow::Env::Default()->GetChildren(dirname, children)); auto* list = new TF_StringStream; list->list = children; list->position = 0; return list; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
ops->filesystem_ops->copy_file = tf_posix_filesystem::CopyFile; ops->filesystem_ops->path_exists = tf_posix_filesystem::PathExists; ops->filesystem_ops->stat = tf_posix_filesystem::Stat; ops->filesystem_ops->get_children = tf_posix_filesystem::GetChildren; } void TF_InitPlugin(TF_FilesystemPluginInfo* info) { info->plugin_memory_allocate = plugin_memory_allocate; info->plugin_memory_free = plugin_memory_free;
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/filesystem_interface.h
/// * Might use any other error value for `status` to signal other errors. /// /// DEFAULT IMPLEMENTATION: Does a BFS traversal of tree rooted at `path`, /// deleting entries as needed. Needs `path_exists`, `get_children`, /// `is_directory`, `delete_file`, and `delete_dir`. void (*delete_recursively)(const TF_Filesystem* filesystem, const char* path, uint64_t* undeleted_files,
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/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
EXPECT_TF_OK(status_); std::vector<std::string> childrens; for (int i = 0; i < num_entries; ++i) { childrens.push_back(entries[i]); } std::sort(childrens.begin(), childrens.end()); EXPECT_EQ(std::vector<string>({"SubDir/", "TestFile.csv"}), childrens); } TEST_F(GCSFilesystemTest, DeleteFile) { tf_gcs_filesystem::Init(filesystem_, status_);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0)