- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Flush (0.15 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem.cc
} Status ModularWritableFile::Flush() { if (ops_->flush == nullptr) return OkStatus(); UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus); ops_->flush(file_.get(), plugin_status.get()); return StatusFromTF_Status(plugin_status.get()); } Status ModularWritableFile::Sync() { if (ops_->sync == nullptr) return Flush();
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) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
} static void Sync(const TF_WritableFile* file, TF_Status* status) { // For historical reasons, this does the same as `Flush` at the moment. // TODO(b/144055243): This should use `fsync`/`sync`. Flush(file, status); } static void Close(const TF_WritableFile* file, TF_Status* status) { auto posix_file = static_cast<PosixFile*>(file->plugin_file); if (fclose(posix_file->handle) != 0)
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/gcs/gcs_filesystem.cc
return position == -1 ? -1 : position + (gcs_file->offset == -1 ? 0 : gcs_file->offset); } void Flush(const TF_WritableFile* file, TF_Status* status) { auto gcs_file = static_cast<GCSFile*>(file->plugin_file); if (gcs_file->sync_need) { TF_VLog(3, "Flush started: gs://%s/%s", gcs_file->bucket.c_str(), gcs_file->object.c_str()); if (!gcs_file->outfile) {
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.h
: filename_(filename), file_(std::move(file)), ops_(ops) {} ~ModularWritableFile() override { ops_->cleanup(file_.get()); } Status Append(StringPiece data) override; Status Close() override; Status Flush() override; Status Sync() override; Status Name(StringPiece* result) const override; Status Tell(int64_t* position) override; private: std::string filename_; std::unique_ptr<TF_WritableFile> file_;
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)