MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / add_summary

Method add_summary

tensorboard/util/test_util.py:68–80  ·  view source on GitHub ↗
(self, summary, global_step=None)

Source from the content-addressed store, hash-verified

66 super().add_event(tf_event)
67
68 def add_summary(self, summary, global_step=None):
69 if isinstance(summary, summary_pb2.Summary):
70 tf_summary = tf.compat.v1.Summary.FromString(
71 summary.SerializeToString()
72 )
73 else:
74 tf_summary = summary
75 if not isinstance(summary, bytes):
76 logger.error(
77 "Added TensorFlow summary proto. "
78 "Please prefer TensorBoard copy of the proto"
79 )
80 super().add_summary(tf_summary, global_step)
81
82 def add_session_log(self, session_log, global_step=None):
83 if isinstance(session_log, event_pb2.SessionLog):

Callers 15

testTFSummaryTensorMethod · 0.95
_writeMetadataMethod · 0.95
_writeMetadataMethod · 0.95
runFunction · 0.95
run_allFunction · 0.95
start_runsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected