f1df735684946dbbcefe41e41c7b1c3f2f751a07,deepchem/models/tensorgraph/layers.py,Dense,create_tensor,#Dense#Any#Any#,203
Before Change
else:
biases_initializer = self.biases_initializer()
if not self.time_series:
out_tensor = tf.contrib.layers.fully_connected(
parent,
num_outputs=self.out_channels,
activation_fn=self.activation_fn,
biases_initializer=biases_initializer,
weights_initializer=self.weights_initializer(),
scope=self._get_scope_name(),
reuse=self._reuse,
trainable=True)
else:
dense_fn = lambda x: tf.contrib.layers.fully_connected(x,
num_outputs=self.out_channels,
activation_fn=self.activation_fn,
biases_initializer=biases_initializer,
weights_initializer=self.weights_initializer(),
scope=self._get_scope_name(),
reuse=self._reuse,
trainable=True)
out_tensor = tf.map_fn(dense_fn, parent)
if set_tensors:
self.variables = tf.get_collection(
tf.GraphKeys.GLOBAL_VARIABLES, scope=self._get_scope_name())
self.out_tensor = out_tensor
return out_tensor
After Change
biases_initializer = None
else:
biases_initializer = self.biases_initializer()
for reuse in (self._reuse, False):
dense_fn = lambda x: tf.contrib.layers.fully_connected(x,
num_outputs=self.out_channels,
activation_fn=self.activation_fn,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: deepchem/deepchem
Commit Name: f1df735684946dbbcefe41e41c7b1c3f2f751a07
Time: 2017-06-05
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Dense
Method Name: create_tensor
Project Name: arnomoonens/yarll
Commit Name: b559f5b97f4227c4f6f7daf4a725a1e0c71c47a2
Time: 2017-10-18
Author: x-006@hotmail.com
File Name: agents/reinforce.py
Class Name: REINFORCEContinuous
Method Name: build_network_normal
Project Name: arnomoonens/yarll
Commit Name: b559f5b97f4227c4f6f7daf4a725a1e0c71c47a2
Time: 2017-10-18
Author: x-006@hotmail.com
File Name: agents/reinforce.py
Class Name: REINFORCEContinuous
Method Name: build_network_rnn