abe3c808933c85e6db1719cdb92fcbbd9eac6dec,scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py,BenchmarkCNN,_eval_cnn,#BenchmarkCNN#,886
Before Change
tf.get_default_graph())
target = ""
with tf.Session(target=target, config=create_config_proto()) as sess:
for i in xrange(len(enqueue_ops)):
sess.run(enqueue_ops[:(i+1)])
if FLAGS.train_dir is None:
raise ValueError("Trained model directory not specified")
global_step = load_checkpoint(saver, sess, FLAGS.train_dir)
After Change
summary_writer = tf.summary.FileWriter(FLAGS.eval_dir,
tf.get_default_graph())
target = ""
local_var_init_op = tf.local_variables_initializer()
variable_mgr_init_ops = [local_var_init_op]
with tf.control_dependencies([local_var_init_op]):
variable_mgr_init_ops.extend(self.variable_mgr.get_post_init_ops())
local_var_init_op_group = tf.group(*variable_mgr_init_ops)
with tf.Session(target=target, config=create_config_proto()) as sess:
if FLAGS.train_dir is None:
raise ValueError("Trained model directory not specified")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: tensorflow/benchmarks
Commit Name: abe3c808933c85e6db1719cdb92fcbbd9eac6dec
Time: 2017-08-17
Author: tobyboyd@google.com
File Name: scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py
Class Name: BenchmarkCNN
Method Name: _eval_cnn
Project Name: reinforceio/tensorforce
Commit Name: ee950b503eeed5aca3747a4bcf2a40f624b743a0
Time: 2019-01-21
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/optimizers/multi_step.py
Class Name: MultiStep
Method Name: tf_step
Project Name: google/ffn
Commit Name: ce83340731ff66c88ff3d09aa7b70667b7db3f74
Time: 2018-10-28
Author: mjanusz@google.com
File Name: ffn/training/model.py
Class Name: FFNModel
Method Name: set_up_optimizer
Project Name: asyml/texar
Commit Name: cf0cb3360a77041187c655891da4ddffbe4b13dd
Time: 2018-11-27
Author: haoranshi97@gmail.com
File Name: texar/core/optimization.py
Class Name: AdamWeightDecayOptimizer
Method Name: apply_gradients