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

Function WriteSimpleValue

tensorflow/core/util/events_writer_test.cc:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36Env* env() { return Env::Default(); }
37
38void WriteSimpleValue(EventsWriter* writer, double wall_time, int64 step,
39 const string& tag, float simple_value) {
40 Event event;
41 event.set_wall_time(wall_time);
42 event.set_step(step);
43 Summary::Value* summ_val = event.mutable_summary()->add_value();
44 summ_val->set_tag(tag);
45 summ_val->set_simple_value(simple_value);
46 writer->WriteEvent(event);
47}
48
49void WriteFile(EventsWriter* writer) {
50 WriteSimpleValue(writer, 1234, 34, "foo", 3.14159);

Callers 1

WriteFileFunction · 0.85

Calls 3

set_stepMethod · 0.80
set_tagMethod · 0.80
WriteEventMethod · 0.45

Tested by

no test coverage detected