eaad03cd8e49a57b425bfc01fa87d8da641655f6,vgg.py,,train,#Any#Any#,308

Before Change


    apply_gradient_op = opt.apply_gradients(grads, global_step=global_step)

    // Add histograms for trainable variables.
    for var in tf.trainable_variables():
        tf.histogram_summary(var.op.name, var)

    // Add histograms for gradients.
    for grad, var in grads:
        if grad is not None:
            tf.histogram_summary(var.op.name + "/gradients", grad)

After Change


    opt = tf.train.MomentumOptimizer(learning_rate, MOMENTUM)
    train_op = opt.minimize(total_loss, global_step=global_step)

    return learning_rate_summary, train_op


def get_model(images, train_phase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: galeone/dynamic-training-bench
Commit Name: eaad03cd8e49a57b425bfc01fa87d8da641655f6
Time: 2016-10-23
Author: nessuno@nerdz.eu
File Name: vgg.py
Class Name:
Method Name: train


Project Name: asyml/texar
Commit Name: f1b7e12c77298fdce190e7270af61c1a734fc8e1
Time: 2018-03-30
Author: zhitinghu@gmail.com
File Name: texar/core/optimization.py
Class Name:
Method Name: get_train_op


Project Name: HyperGAN/HyperGAN
Commit Name: bcfb6021f2fd9b4412625ef7ee6bc703f40468b9
Time: 2019-01-10
Author: mikkel@255bits.com
File Name: hypergan/gans/base_gan.py
Class Name: BaseGAN
Method Name: trainable_vars


Project Name: OpenNMT/OpenNMT-tf
Commit Name: d1e100a652ffe8c10a166f6db55b70ca0752d72d
Time: 2019-04-01
Author: guillaume.klein@systrangroup.com
File Name: opennmt/utils/optim.py
Class Name:
Method Name: regularization_penalty