f14006003b93d299d9713395ee4a4fef824b546e,tensorboard/util/test_util.py,FileWriter,add_event,#FileWriter#Any#,63

Before Change


        if isinstance(event, event_pb2.Event):
            tf_event = tf.compat.v1.Event.FromString(event.SerializeToString())
        else:
            logger.warn(
                "Added TensorFlow event proto. "
                "Please prefer TensorBoard copy of the proto"
            )
            tf_event = event
        super(FileWriter, self).add_event(tf_event)

    def add_summary(self, summary, global_step=None):

After Change


            tf_event = tf.compat.v1.Event.FromString(event.SerializeToString())
        else:
            tf_event = event
            if not isinstance(event, bytes):
                logger.error(
                    "Added TensorFlow event proto. "
                    "Please prefer TensorBoard copy of the proto"
                )
        super(FileWriter, self).add_event(tf_event)

    def add_summary(self, summary, global_step=None):
        if isinstance(summary, summary_pb2.Summary):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/tensorboard
Commit Name: f14006003b93d299d9713395ee4a4fef824b546e
Time: 2020-01-28
Author: wchargin@gmail.com
File Name: tensorboard/util/test_util.py
Class Name: FileWriter
Method Name: add_event


Project Name: tensorflow/tensorboard
Commit Name: f14006003b93d299d9713395ee4a4fef824b546e
Time: 2020-01-28
Author: wchargin@gmail.com
File Name: tensorboard/util/test_util.py
Class Name: FileWriter
Method Name: add_session_log


Project Name: tensorflow/tensorboard
Commit Name: f14006003b93d299d9713395ee4a4fef824b546e
Time: 2020-01-28
Author: wchargin@gmail.com
File Name: tensorboard/util/test_util.py
Class Name: FileWriter
Method Name: add_summary