6f528bb277012ec96bae86c30ef1dbd5eb3c2130,tensorlayer/layers.py,DropconnectDenseLayer,__init__,#DropconnectDenseLayer#Any#Any#Any#Any#Any#Any#Any#Any#Any#,752
Before Change
print(" tensorlayer:Instantiate DropconnectDenseLayer %s: %d, %s" % (self.name, self.n_units, act))
W = tf.Variable(W_init(shape=(n_in, n_units), **W_init_args), name="W")
b = tf.Variable(b_init(shape=[n_units], **b_init_args), name="b")
self.outputs = act(tf.matmul(self.inputs, W) + b)
set_keep[name] = tf.placeholder(tf.float32)
W_dropcon = tf.nn.dropout(W, set_keep[name])
After Change
Layer.__init__(self, name=name)
self.inputs = layer.outputs
// n_in = layer.n_units
if self.inputs.get_shape().ndims != 2:
raise Exception("The input dimension must be rank 2")
n_in = int(self.inputs._shape[-1])
self.n_units = n_units
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 6f528bb277012ec96bae86c30ef1dbd5eb3c2130
Time: 2016-07-21
Author: haodong@dyn1227-42.wlan.ic.ac.uk
File Name: tensorlayer/layers.py
Class Name: DropconnectDenseLayer
Method Name: __init__
Project Name: IndicoDataSolutions/finetune
Commit Name: e9133e7d5017435a0bd5504fb3bcc000ab724488
Time: 2018-08-03
Author: benlt@hotmail.co.uk
File Name: finetune/optimizers.py
Class Name:
Method Name: AdamWeightDecay
Project Name: tensorlayer/tensorlayer
Commit Name: 6f528bb277012ec96bae86c30ef1dbd5eb3c2130
Time: 2016-07-21
Author: haodong@dyn1227-42.wlan.ic.ac.uk
File Name: tensorlayer/layers.py
Class Name: DenseLayer
Method Name: __init__