860dc3903f01527b9fa57d50da63910c4cea6c2f,src/model/model.py,Model,__init__,#Model#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,28

Before Change


            else:
                params_init.append(param)

        self.saver_all = tf.train.Saver(tf.all_variables())
        //self.saver = tf.train.Saver(list(set(tf.all_variables())-set(params_add)))
        self.saver = tf.train.Saver(params_load)
        init_new_vars_op = tf.initialize_variables(params_init)

After Change


       
            with tf.device(gpu_device_id):
                self.keras_updates = []
                for i in xrange(int(len(cnn_model.model.updates)/2)):
                    old_value = cnn_model.model.updates[i*2]
                    new_value = cnn_model.model.updates[i*2+1]
                    self.keras_updates.append(tf.assign(old_value, new_value))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: emedvedev/attention-ocr
Commit Name: 860dc3903f01527b9fa57d50da63910c4cea6c2f
Time: 2016-11-13
Author: ubuntu@ip-172-31-22-240.us-west-2.compute.internal
File Name: src/model/model.py
Class Name: Model
Method Name: __init__


Project Name: tensorflow/models
Commit Name: d9d10fbbb938534af72f405983cabb85258ac5f3
Time: 2017-06-27
Author: derekjchow@gmail.com
File Name: object_detection/exporter.py
Class Name:
Method Name: _write_inference_graph


Project Name: CyberReboot/NetworkML
Commit Name: e2226f604c7f6444630be324d06a8130a01f3366
Time: 2018-01-22
Author: CStephenson970@gmail.com
File Name: NodeClassifier/utils/rnnclassifier.py
Class Name: AbnormalDetector
Method Name: __init__