7274fee9b40e6788f0a2f2e8a3e7d17da243e2a3,engine/training.py,,run,#Any#Any#Any#Any#,23

Before Change


                        reg_loss = tf.reduce_mean([tf.reduce_mean(reg_loss)
                                                for reg_loss in reg_losses])
                        loss = loss + reg_loss
                tf.summary.scalar("loss",loss,[engine.logging.CONSOLE,engine.logging.LOG])

                ////////////////////////////////////
                // This should probably be refactored into an application class
                // Averages are in name_scope for Tensorboard naming; summaries are outside for console naming

After Change


            for tag,avg in averaged_summaries:
                tf.summary.scalar(tag, avg,[engine.logging.CONSOLE,engine.logging.LOG])
        else:
            console_outputs+=tower_console_outputs[0]
        // Track the moving averages of all trainable variables.
        with tf.name_scope("MovingAverages"):
            variable_averages = tf.train.ExponentialMovingAverage(0.9)
            var_averages_op = variable_averages.apply(tf.trainable_variables())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 7274fee9b40e6788f0a2f2e8a3e7d17da243e2a3
Time: 2017-07-04
Author: eli.gibson@ucl.ac.uk
File Name: engine/training.py
Class Name:
Method Name: run


Project Name: NifTK/NiftyNet
Commit Name: 1d0d8958f556638dfd118d416a0a91f502699258
Time: 2017-07-04
Author: r.gray@ucl.ac.uk
File Name: engine/training.py
Class Name:
Method Name: run


Project Name: NifTK/NiftyNet
Commit Name: ef234844e1604d5496607fcf48886d9e556c0685
Time: 2017-06-21
Author: r.gray@ucl.ac.uk
File Name: engine/training.py
Class Name:
Method Name: run