b263ab3a2904ee85910623cd770eb6763d81e4a9,niftynet/engine/event_tensorboard.py,TensorBoardLogger,__init__,#TensorBoardLogger#Any#Any#Any#Any#Any#,19

Before Change


                 outputs_collector,
                 is_training,
                 **_unused):
        if not is_training:
            return
        self.tensorboard_every_n = tensorboard_every_n
        self.summary_dir = summary_dir
        // the collector provides TF summary ops
        self.outputs_collector = outputs_collector
        // initialise summary writer
        self.writer_train = tf.summary.FileWriter(
            os.path.join(self.summary_dir, TRAIN), graph)
        self.writer_valid = tf.summary.FileWriter(
            os.path.join(self.summary_dir, VALID), graph)
        ITER_STARTED.connect(self.read_tensorboard_op)
        ITER_FINISHED.connect(self.write_tensorboard)

After Change


        self.outputs_collector = outputs_collector
        // initialise summary writer
        self.writer_train = tf.summary.FileWriter(
            os.path.join(self.summary_dir, TRAIN), tf.get_default_graph())
        self.writer_valid = tf.summary.FileWriter(
            os.path.join(self.summary_dir, VALID), tf.get_default_graph())

        ITER_STARTED.connect(self.read_tensorboard_op)
        ITER_FINISHED.connect(self.write_tensorboard)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/event_tensorboard.py
Class Name: TensorBoardLogger
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 0ddd27b71f54be5682da90473d00ea671a3459ca
Time: 2018-01-29
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save


Project Name: tryolabs/luminoth
Commit Name: 4ec258a2261a943910a34be1b7d53a646f089367
Time: 2018-04-16
Author: joaquin.alori@gmail.com
File Name: luminoth/train.py
Class Name:
Method Name: run


Project Name: deepmipt/DeepPavlov
Commit Name: 6b33ca24d5df63dcae69f4e6140327f5fecbc897
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save