ae585178b8f190bcbf7f1433a731fa27fc32271a,niftynet/engine/application_driver.py,ApplicationDriver,_create_graph,#ApplicationDriver#,88
Before Change
self.app.set_output_op(net_outputs)
variable_averages = tf.train.ExponentialMovingAverage(0.9)
self._moving_ave_op = variable_averages.apply(
tf.trainable_variables())
if self.is_training:
averaged_grads = util.average_gradients(training_grads)
self.app.set_network_update_op(averaged_grads)
After Change
// moving average operation
variable_averages = tf.train.ExponentialMovingAverage(0.9)
trainables = tf.trainable_variables()
moving_ave_op = variable_averages.apply(trainables)
// training operation
if self.is_training:
updates_op = [moving_ave_op]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: NifTK/NiftyNet
Commit Name: ae585178b8f190bcbf7f1433a731fa27fc32271a
Time: 2017-07-23
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _create_graph
Project Name: asyml/texar
Commit Name: 89b081ed3659557e75c8d95a30d1170ddf53cc88
Time: 2018-05-28
Author: zhitinghu@gmail.com
File Name: texar/modules/embedders/position_embedders.py
Class Name: PositionEmbedder
Method Name: _build
Project Name: asyml/texar
Commit Name: 89b081ed3659557e75c8d95a30d1170ddf53cc88
Time: 2018-05-28
Author: zhitinghu@gmail.com
File Name: texar/modules/embedders/embedders.py
Class Name: WordEmbedder
Method Name: _build