MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MaybeFlush

Method MaybeFlush

tensorflow/core/summary/summary_db_writer.cc:356–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354 }
355
356 Status MaybeFlush() {
357 if (unflushed_bytes_ >= kFlushBytes) {
358 TF_RETURN_WITH_CONTEXT_IF_ERROR(txn_->Commit(), "flushing ",
359 unflushed_bytes_, " bytes");
360 unflushed_bytes_ = 0;
361 }
362 return Status::OK();
363 }
364
365 Sqlite* const db_;
366 SqliteTransaction* const txn_;

Callers

nothing calls this directly

Calls 1

CommitMethod · 0.45

Tested by

no test coverage detected