76af726f4d58fd445496734a41e22ff36afe3657,dual_net.py,DualNetworkTrainer,train,#DualNetworkTrainer#Any#Any#Any#Any#,83
Before Change
tensor_values = self.sess.run(train_tensors)
except tf.errors.OutOfRangeError:
break
if logdir is not None:
training_stats.report(
tensor_values["policy_cost"],
tensor_values["value_cost"],
tensor_values["l2_cost"],
tensor_values["combined_cost"])
if i % 100 == 0 and logdir is not None:
accuracy_summaries = training_stats.collect()
weight_summaries = self.sess.run(weight_tensors)
global_step = tensor_values["global_step"]
logger.add_summary(accuracy_summaries, global_step)
logger.add_summary(weight_summaries, global_step)
self.save_weights()
class DualNetwork():
After Change
accuracy_summaries = training_stats.collect()
weight_summaries = self.sess.run(weight_summary_op)
global_step = tensor_values["global_step"]
logger.add_summary(gradient_summaries, global_step)
logger.add_summary(accuracy_summaries, global_step)
logger.add_summary(weight_summaries, global_step)
self.save_weights()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorflow/minigo
Commit Name: 76af726f4d58fd445496734a41e22ff36afe3657
Time: 2018-02-06
Author: brian.kihoon.lee@gmail.com
File Name: dual_net.py
Class Name: DualNetworkTrainer
Method Name: train
Project Name: NifTK/NiftyNet
Commit Name: a876bb48d334428efccfff4782b928d6e41d23d3
Time: 2017-07-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _training_loop
Project Name: tensorflow/magenta
Commit Name: 982740ee6e56d674e3f220d7bf215ae4132c9c1c
Time: 2019-02-22
Author: fjord@google.com
File Name: magenta/models/onsets_frames_transcription/onsets_frames_transcription_infer.py
Class Name:
Method Name: main