- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for WritableFile (0.3 sec)
-
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) -
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) -
tensorflow/c/env.cc
auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle); TF_SetStatus(status, TF_OK, ""); ::tensorflow::Set_TF_Status_from_Status(status, cc_file->Close()); delete cc_file; } void TF_SyncWritableFile(TF_WritableFileHandle* handle, TF_Status* status) { auto* cc_file = reinterpret_cast<::tensorflow::WritableFile*>(handle); TF_SetStatus(status, TF_OK, "");
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
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) -
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) -
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) -
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)