- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getNChildren (0.2 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
stats->length = sbuf.st_size; stats->mtime_nsec = sbuf.st_mtime * (1000 * 1000 * 1000); stats->is_directory = S_ISDIR(sbuf.st_mode); TF_SetStatus(status, TF_OK, ""); } } static int GetChildren(const TF_Filesystem* filesystem, const char* path, char*** entries, TF_Status* status) { struct dirent** dir_entries = nullptr; /* we don't promise entries would be sorted */ int num_entries =
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/env_test.cc
ASSERT_TF_OK(s) << "TF_CloseWritableFile failed to close handle to " << filepath << ": " << TF_Message(s); 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");
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/env.cc
delete list->list; delete list; } 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;
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/gcs/gcs_filesystem_test.cc
tf_gcs_filesystem::PathExists(filesystem_, path.c_str(), status_); EXPECT_TF_OK(status_); } TEST_F(GCSFilesystemTest, GetChildren) { tf_gcs_filesystem::Init(filesystem_, status_); ASSERT_TF_OK(status_); const std::string base = GetURIForPath("GetChildren"); tf_gcs_filesystem::CreateDir(filesystem_, base.c_str(), status_); EXPECT_TF_OK(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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
// The object is a directory marker. (*undeleted_dirs)++; else (*undeleted_files)++; } } } int GetChildren(const TF_Filesystem* filesystem, const char* path, char*** entries, TF_Status* status) { auto gcs_file = static_cast<GCSFile*>(filesystem->plugin_filesystem); std::vector<std::string> childrens =
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/experimental/filesystem/modular_filesystem_test.cc
if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status; } std::vector<std::string> children; status = env_->GetChildren(dirpath, &children); EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK); if (!status.ok()) GTEST_SKIP() << "GetChildren() not supported: " << status; // All entries must show up in the vector. // Must contain only the last name in filenames and dirnames.
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
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)