b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe,policy.py,PolicyNetwork,initialize_logging,#PolicyNetwork#Any#,81
Before Change
setattr(self, name, thing)
def initialize_logging(self, tensorboard_logdir):
for weight_var in itertools.chain([self.W_conv_init], self.W_conv_intermediate, [self.W_conv_final]):
tf.histogram_summary(weight_var.name, weight_var)
tf.scalar_summary("accuracy", self.accuracy)
tf.scalar_summary("log_likelihood_cost", self.log_likelihood_cost)
self.summaries = tf.merge_all_summaries()
self.summary_writer = tf.train.SummaryWriter(tensorboard_logdir, self.session.graph_def)
After Change
self.weight_summaries = tf.merge_summary(weight_summaries)
self.accuracy_summaries = tf.merge_summary([accuracy, cost])
self.test_summary_writer = tf.train.SummaryWriter(os.path.join(tensorboard_logdir, "test"), self.session.graph)
self.training_summary_writer = tf.train.SummaryWriter(os.path.join(tensorboard_logdir, "training"), self.session.graph)
def initialize_variables(self, save_file=None):
if save_file is None:
self.session.run(tf.initialize_all_variables())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: brilee/MuGo
Commit Name: b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe
Time: 2016-07-06
Author: brian.kihoon.lee@gmail.com
File Name: policy.py
Class Name: PolicyNetwork
Method Name: initialize_logging
Project Name: dmlc/dgl
Commit Name: ff345c2e2210061141653a19ef1431c6866cbf68
Time: 2021-02-03
Author: wcy_james@outlook.com
File Name: examples/pytorch/pointcloud/pointnet/train_partseg.py
Class Name:
Method Name:
Project Name: kengz/SLM-Lab
Commit Name: c9d0af542668df6fcaa51b5298237ea4a351f101
Time: 2020-02-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/__init__.py
Class Name: Body
Method Name: log_tensorboard