034d117e7c7f9adf46444b5b049b635e61f6d7b3,deepvariant/modeling.py,DeepVariantSlimModel,_model_fn_train,#DeepVariantSlimModel#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1033

Before Change


        epsilon=rmsprop_epsilon)
    if self.use_tpu:
      optimizer = tpu_optimizer.CrossShardOptimizer(optimizer)
    update_ops = tf.compat.v1.get_collection(tf.compat.v1.GraphKeys.UPDATE_OPS)
    with tf.control_dependencies(update_ops):
      train_op = optimizer.minimize(total_loss, global_step=global_step)

    // NB. In the inception code this was "tf.trainable_variables()

After Change


        epsilon=rmsprop_epsilon)
    if self.use_tpu:
      optimizer = tpu_optimizer.CrossShardOptimizer(optimizer)
    update_ops = tf.compat.v1.get_collection(tf.compat.v1.GraphKeys.UPDATE_OPS)
    with tf.control_dependencies(update_ops):
      train_op = optimizer.minimize(total_loss, global_step=global_step)

    // NB. In the inception code this was "tf.trainable_variables()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: google/deepvariant
Commit Name: 034d117e7c7f9adf46444b5b049b635e61f6d7b3
Time: 2020-02-26
Author: no-reply@google.com
File Name: deepvariant/modeling.py
Class Name: DeepVariantSlimModel
Method Name: _model_fn_train


Project Name: NifTK/NiftyNet
Commit Name: d11984884a2a98e71a7632b9ff2180895b1bd7bf
Time: 2017-08-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _create_graph


Project Name: NifTK/NiftyNet
Commit Name: f9f1242e23bc4ad0433577b81274b9a6065fbb89
Time: 2017-07-13
Author: eli.gibson@gmail.com
File Name: niftynet/application/gan_application.py
Class Name: GANApplication
Method Name: train


Project Name: NervanaSystems/coach
Commit Name: d6795bd5245ba18604ce1b1ffa9fbee9c8ce7778
Time: 2019-06-23
Author: gal.leibovich@intel.com
File Name: rl_coach/architectures/tensorflow_components/general_network.py
Class Name: GeneralTensorFlowNetwork
Method Name: get_model


Project Name: google/deepvariant
Commit Name: 481f316cae7e4bee4bb0d8f7b814d2c2c61c4d75
Time: 2020-01-21
Author: no-reply@google.com
File Name: deepvariant/modeling.py
Class Name: DeepVariantSlimModel
Method Name: _model_fn_train