Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for WritableFile (0.24 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    }
    
    }  // namespace tf_random_access_file
    
    // SECTION 2. Implementation for `TF_WritableFile`
    // ----------------------------------------------------------------------------
    namespace tf_writable_file {
    
    typedef struct PosixFile {
      const char* filename;
      FILE* handle;
    } PosixFile;
    
    static void Cleanup(TF_WritableFile* file) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    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/modular_filesystem_test.cc

      std::unique_ptr<WritableFile> new_file;
      Status status = env_->NewWritableFile(filepath, &new_file);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateFileNonExisting) {
      const std::string filepath = GetURIForPath("dir_not_found/a_file");
      std::unique_ptr<WritableFile> new_file;
    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.h

      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 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc

    namespace tf_random_access_file {
    
    // TODO(b/139060984): Implement later
    
    }  // namespace tf_random_access_file
    
    // SECTION 2. Implementation for `TF_WritableFile`
    // ----------------------------------------------------------------------------
    namespace tf_writable_file {
    
    // TODO(b/139060984): Implement later
    
    }  // namespace tf_writable_file
    
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:21:15 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.cc

        std::unique_ptr<WritableFile>* result) {
      if (ops_->new_writable_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support NewWritableFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      auto file = std::make_unique<TF_WritableFile>();
      std::string translated_name = TranslateName(fname);
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

          return;
        }
        *offset = static_cast<int64_t>(metadata->size());
        TF_SetStatus(status, TF_OK, "");
      }
    }
    
    void Cleanup(TF_WritableFile* file) {
      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      delete gcs_file;
    }
    
    void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                TF_Status* status) {
      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
    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)
  7. tensorflow/c/experimental/filesystem/filesystem_interface.h

    /// to initialize it as `nullptr`.
    
    typedef struct TF_RandomAccessFile {
      void* plugin_file;
    } TF_RandomAccessFile;
    
    typedef struct TF_WritableFile {
      void* plugin_file;
    } TF_WritableFile;
    
    typedef struct TF_ReadOnlyMemoryRegion {
      void* plugin_memory_region;
    } TF_ReadOnlyMemoryRegion;
    
    typedef struct TF_Filesystem {
      void* plugin_filesystem;
    } TF_Filesystem;
    
    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)
Back to top