Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NewAppendableFile (0.31 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

                             TF_RandomAccessFile* file, TF_Status* status);
    void NewWritableFile(const TF_Filesystem* filesystem, const char* path,
                         TF_WritableFile* file, TF_Status* status);
    void NewAppendableFile(const TF_Filesystem* filesystem, const char* path,
                           TF_WritableFile* file, TF_Status* status);
    void NewReadOnlyMemoryRegionFromFile(const TF_Filesystem* filesystem,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        TF_SetStatusFromIOError(status, errno, path);
        return;
      }
    
      file->plugin_file = new tf_writable_file::PosixFile({strdup(path), f});
      TF_SetStatus(status, TF_OK, "");
    }
    
    static void NewAppendableFile(const TF_Filesystem* filesystem, const char* path,
                                  TF_WritableFile* file, TF_Status* status) {
      FILE* f = fopen(path, "a");
      if (f == nullptr) {
    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)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      std::unique_ptr<WritableFile> new_file;
      Status status = env_->NewAppendableFile(filepath, &new_file);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    }
    
    TEST_P(ModularFileSystemTest, TestAppendFileNonExisting) {
      const std::string filepath = GetURIForPath("dir_not_found/a_file");
      std::unique_ptr<WritableFile> new_file;
      Status status = env_->NewAppendableFile(filepath, &new_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)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::NewAppendableFile(
        const std::string& fname, TransactionToken* token,
        std::unique_ptr<WritableFile>* result) {
      if (ops_->new_appendable_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support NewAppendableFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    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)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.h

          std::unique_ptr<RandomAccessFile>* result) override;
      Status NewWritableFile(const std::string& fname, TransactionToken* token,
                             std::unique_ptr<WritableFile>* result) override;
      Status NewAppendableFile(const std::string& fname, TransactionToken* token,
                               std::unique_ptr<WritableFile>* result) override;
      Status NewReadOnlyMemoryRegionFromFile(
          const std::string& fname, TransactionToken* token,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      // We are responsible for freeing the pointer returned by TF_GetTempFileName
      free(temp_file_name);
      TF_VLog(3, "GcsWritableFile: %s", path);
      TF_SetStatus(status, TF_OK, "");
    }
    
    void NewAppendableFile(const TF_Filesystem* filesystem, const char* path,
                           TF_WritableFile* file, TF_Status* status) {
      std::string bucket, object;
      ParseGCSPath(path, false, &bucket, &object, status);
    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)
Back to top