ecbf73f72b59f8f5c8746de63270aa1fb3ad7524,keras/callbacks.py,TensorBoard,on_epoch_end,#TensorBoard#Any#Any#,894

Before Change


        for name, value in logs.items():
            if name in ["batch", "size"]:
                continue
            summary = tf.Summary()
            summary_value = summary.value.add()
            if isinstance(value, np.ndarray):
                summary_value.simple_value = value.item()
            else:
                summary_value.simple_value = value
            summary_value.tag = name
            self.writer.add_summary(summary, epoch)
        self.writer.flush()

    def on_train_end(self, _):
        self.writer.close()

After Change



                    i += self.batch_size

        if self.update_freq == "epoch":
            index = epoch
        else:
            index = self.samples_seen
        self._write_logs(logs, index)

    def _write_logs(self, logs, index):
        for name, value in logs.items():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: ecbf73f72b59f8f5c8746de63270aa1fb3ad7524
Time: 2018-10-01
Author: gabrieldemarmiesse@gmail.com
File Name: keras/callbacks.py
Class Name: TensorBoard
Method Name: on_epoch_end


Project Name: rlworkgroup/garage
Commit Name: 4d2417e93598d0effba91f5a3c4eba03334b64ac
Time: 2018-05-25
Author: CatherineSue@users.noreply.github.com
File Name: rllab/misc/logger.py
Class Name:
Method Name: dump_tensorboard


Project Name: tensorflow/models
Commit Name: a97304d53e873ce5949b486c8fcbf5d4fcab7a3b
Time: 2017-05-03
Author: rsepassi@google.com
File Name: adversarial_text/evaluate.py
Class Name:
Method Name: run_eval