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

Method add_event

tensorboard/util/test_util.py:56–66  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

54 self.add_summary(summary, global_step=step)
55
56 def add_event(self, event):
57 if isinstance(event, event_pb2.Event):
58 tf_event = tf.compat.v1.Event.FromString(event.SerializeToString())
59 else:
60 tf_event = event
61 if not isinstance(event, bytes):
62 logger.error(
63 "Added TensorFlow event proto. "
64 "Please prefer TensorBoard copy of the proto"
65 )
66 super().add_event(tf_event)
67
68 def add_summary(self, summary, global_step=None):
69 if isinstance(summary, summary_pb2.Summary):

Callers 4

convert_scalarsFunction · 0.45
convert_tensorsFunction · 0.45
convert_blobsFunction · 0.45
_GenerateEventsDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected