- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TF_RandomAccessFile (0.24 sec)
-
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
} }); writer->plugin_file = nullptr; return writer; } std::unique_ptr<TF_RandomAccessFile, void (*)(TF_RandomAccessFile* file)> GetReader() { std::unique_ptr<TF_RandomAccessFile, void (*)(TF_RandomAccessFile * file)> reader(new TF_RandomAccessFile, [](TF_RandomAccessFile* file) { if (file != nullptr) { if (file->plugin_file != nullptr)
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h
void ParseGCSPath(const std::string& fname, bool object_empty_ok, std::string* bucket, std::string* object, TF_Status* status); namespace tf_random_access_file { void Cleanup(TF_RandomAccessFile* file); int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n, char* buffer, TF_Status* status); } // namespace tf_random_access_file namespace tf_writable_file { void Cleanup(TF_WritableFile* 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) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
static void plugin_memory_free(void* ptr) { free(ptr); } // SECTION 1. Implementation for `TF_RandomAccessFile` // ---------------------------------------------------------------------------- namespace tf_random_access_file { typedef struct PosixFile { const char* filename; int fd; } PosixFile; static void Cleanup(TF_RandomAccessFile* file) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); close(posix_file->fd);
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) -
tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc
static void* plugin_memory_allocate(size_t size) { return calloc(1, size); } static void plugin_memory_free(void* ptr) { free(ptr); } // SECTION 1. Implementation for `TF_RandomAccessFile` // ---------------------------------------------------------------------------- namespace tf_random_access_file { // TODO(b/139060984): Implement later } // namespace tf_random_access_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) -
tensorflow/c/experimental/filesystem/modular_filesystem.h
}; class ModularRandomAccessFile final : public RandomAccessFile { public: ModularRandomAccessFile(const std::string& filename, std::unique_ptr<TF_RandomAccessFile> file, const TF_RandomAccessFileOps* ops) : filename_(filename), file_(std::move(file)), ops_(ops) {} ~ModularRandomAccessFile() 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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
buffer() {} } GCSFile; void Cleanup(TF_RandomAccessFile* file) { auto gcs_file = static_cast<GCSFile*>(file->plugin_file); delete gcs_file; } // `google-cloud-cpp` is working on a feature that we may want to use. // See https://github.com/googleapis/google-cloud-cpp/issues/4013. int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n, char* buffer, TF_Status* status) {
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) -
tensorflow/c/experimental/filesystem/filesystem_interface.h
/// TensorFlow will never touch the `void*` wrapped by these structures, except /// 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;
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) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
"Filesystem for ", fname, " does not support NewRandomAccessFile()")); UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus); auto file = std::make_unique<TF_RandomAccessFile>(); std::string translated_name = TranslateName(fname); ops_->new_random_access_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)