(self, summary, global_step=None)
| 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): |
no outgoing calls
no test coverage detected