Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TF_WritableFile (0.26 sec)

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

    namespace tf_writable_file {
    void Cleanup(TF_WritableFile* file);
    void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                TF_Status* status);
    int64_t Tell(const TF_WritableFile* file, TF_Status* status);
    void Flush(const TF_WritableFile* file, TF_Status* status);
    void Sync(const TF_WritableFile* file, TF_Status* status);
    void Close(const TF_WritableFile* file, TF_Status* status);
    }  // namespace tf_writable_file
    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)
  2. 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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

            tensorflow::io::JoinPath(root_dir_, path);
        return translated_name;
      }
    
      std::unique_ptr<TF_WritableFile, void (*)(TF_WritableFile* file)>
      GetWriter() {
        std::unique_ptr<TF_WritableFile, void (*)(TF_WritableFile * file)> writer(
            new TF_WritableFile, [](TF_WritableFile* file) {
              if (file != nullptr) {
                if (file->plugin_file != nullptr) tf_writable_file::Cleanup(file);
    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)
  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/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)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.h

    };
    
    class ModularWritableFile final : public WritableFile {
     public:
      ModularWritableFile(const std::string& filename,
                          std::unique_ptr<TF_WritableFile> file,
                          const TF_WritableFileOps* ops)
          : filename_(filename), file_(std::move(file)), ops_(ops) {}
    
      ~ModularWritableFile() override { ops_->cleanup(file_.get()); }
    
    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/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)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

            "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);
      ops_->new_writable_file(filesystem_.get(), translated_name.c_str(),
                              file.get(), plugin_status.get());
    
    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)
Back to top