Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getChildren (0.18 sec)

  1. 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)
  2. 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)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return result;
    }
    
    Status ModularFileSystem::GetChildren(const std::string& dir,
                                          TransactionToken* token,
                                          std::vector<std::string>* result) {
      if (ops_->get_children == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", dir, " does not support GetChildren()"));
    
    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)
  4. 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)
  5. 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)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.h

      bool FilesExist(const std::vector<std::string>& files,
                      TransactionToken* token,
                      std::vector<Status>* status) override;
      Status GetChildren(const std::string& dir, TransactionToken* token,
                         std::vector<std::string>* result) override;
      Status GetMatchingPaths(const std::string& pattern, TransactionToken* token,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    void PathExists(const TF_Filesystem* filesystem, const char* path,
                    TF_Status* status);
    void CreateDir(const TF_Filesystem* filesystem, const char* path,
                   TF_Status* status);
    int GetChildren(const TF_Filesystem* filesystem, const char* path,
                    char*** entries, TF_Status* status);
    void DeleteFile(const TF_Filesystem* filesystem, const char* path,
                    TF_Status* status);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/c/env.h

    // through the list with TF_StringStreamNext. The caller is responsible for
    // freeing the list (see TF_StringStreamDone).
    TF_CAPI_EXPORT extern TF_StringStream* TF_GetChildren(const char* filename,
                                                          TF_Status* status);
    
    // Retrieves a list of directory names on the local machine that may be used for
    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)
  10. 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)
Back to top