Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for children (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top