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

Method Write

tensorflow/core/summary/summary_db_writer.cc:978–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976
977 private:
978 Status Write(int64 step, const Tensor& t, const string& tag,
979 const SummaryMetadata& metadata) {
980 uint64 now = env_->NowMicros();
981 double computed_time = DoubleTime(now);
982 int64 tag_id;
983 TF_RETURN_IF_ERROR(
984 meta_.GetTagId(db_, now, computed_time, tag, &tag_id, metadata));
985 TF_RETURN_WITH_CONTEXT_IF_ERROR(
986 run_.Append(db_, tag_id, step, now, computed_time, t),
987 meta_.user_name(), "/", meta_.experiment_name(), "/", meta_.run_name(),
988 "/", tag, "@", step);
989 return Status::OK();
990 }
991
992 Status MigrateEvent(std::unique_ptr<Event> e) {
993 switch (e->what_case()) {

Callers

nothing calls this directly

Calls 3

DoubleTimeFunction · 0.85
NowMicrosMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected