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

Method Flush

tensorflow/python/client/session_ref.cc:360–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358
359 private:
360 Status Flush(const ReplayOp& op) {
361 mutex_lock l(log_mutex_);
362
363 string buf;
364 op.SerializeToString(&buf);
365 TF_RETURN_IF_ERROR(log_writer_->WriteRecord(buf));
366
367 // TODO(b/116624106): Not all file-systems respect calls to `Sync()`
368 return log_file_->Sync();
369 }
370
371 std::unique_ptr<WritableFile> log_file_;
372 std::unique_ptr<io::RecordWriter> log_writer_;

Callers

nothing calls this directly

Calls 3

SerializeToStringMethod · 0.45
WriteRecordMethod · 0.45
SyncMethod · 0.45

Tested by

no test coverage detected