(self, event)
| 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): |
no outgoing calls
no test coverage detected