7a75d0817b258afaab5cf0cf3c144a5957cebffe,agents/a3c.py,A3CDiscreteCNNRNN,build_networks,#A3CDiscreteCNNRNN#,757
Before Change
self.action = self.shared_ac_net.action
if self.config["shared_optimizer"]:
self.optimizer = tf.train.AdamOptimizer(self.config["learning_rate"], name="optim")
self.global_step = tf.get_variable("global_step", [], tf.int32, initializer=tf.constant_initializer(0, dtype=tf.int32), trainable=False)
def create_summary_losses(self):
self.actor_loss = tf.placeholder("float", name="actor_loss")
actor_loss_summary = tf.summary.scalar("Actor_loss", self.actor_loss)
After Change
// if self.config["shared_optimizer"]:
// self.optimizer = tf.train.AdamOptimizer(self.config["learning_rate"], name="optim")
// self.global_step = tf.get_variable("global_step", [], tf.int32, initializer=tf.constant_initializer(0, dtype=tf.int32), trainable=False)
return
def create_summary_losses(self):
self.actor_loss = tf.placeholder("float", name="actor_loss")
actor_loss_summary = tf.summary.scalar("Actor_loss", self.actor_loss)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: arnomoonens/yarll
Commit Name: 7a75d0817b258afaab5cf0cf3c144a5957cebffe
Time: 2018-01-23
Author: x-006@hotmail.com
File Name: agents/a3c.py
Class Name: A3CDiscreteCNNRNN
Method Name: build_networks
Project Name: tensorflow/models
Commit Name: f8b0067f803286953f124c83d2a4e9ba4bd63a32
Time: 2017-06-27
Author: rathodv@google.com
File Name: object_detection/exporter_test.py
Class Name: FakeModel
Method Name: preprocess
Project Name: tensorflow/models
Commit Name: f33ffcc224fe6549bc2c10cf3597b702459d64fc
Time: 2017-06-27
Author: rathodv@google.com
File Name: object_detection/exporter_test.py
Class Name: FakeModel
Method Name: preprocess