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

Method WriteSerializedEvent

tensorflow/core/util/events_writer.cc:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void EventsWriter::WriteSerializedEvent(StringPiece event_str) {
106 if (recordio_writer_ == nullptr) {
107 if (!InitIfNeeded().ok()) {
108 LOG(ERROR) << "Write failed because file could not be opened.";
109 return;
110 }
111 }
112 num_outstanding_events_++;
113 recordio_writer_->WriteRecord(event_str).IgnoreError();
114}
115
116// NOTE(touts); This is NOT the function called by the Python code.
117// Python calls WriteSerializedEvent(), see events_writer.i.

Callers

nothing calls this directly

Calls 3

okMethod · 0.45
IgnoreErrorMethod · 0.45
WriteRecordMethod · 0.45

Tested by

no test coverage detected