1374e2e6adf4d2bc3fc9983efee06c9ef3f6a08f,tensorlayer/layers/dense/dropconnect.py,DropconnectDense,build,#DropconnectDense#Any#,87
Before Change
self.n_in = inputs_shape[-1]
self._add_weight(scope_name=self.name, var_name="weights", shape=(n_in, self.n_units), init=self.W_init, init_args=self.W_init_args)
// self.W = tf.compat.v1.get_variable(
// name=self.name + "\W", shape=(self.n_in, self.n_units), initializer=self.W_init,
// dtype=LayersConfig.tf_dtype, **self.W_init_args
// )
if self.b_init:
self._add_weight(scope_name=self.name, var_name="biases", shape=(self.n_units), init=self.b_init, init_args=self.b_init_args)
// self.b = tf.compat.v1.get_variable(
// name=self.name + "\b", shape=(self.n_units), initializer=self.b_init, dtype=LayersConfig.tf_dtype,
// **self.b_init_args
// )
After Change
self.n_in = inputs_shape[-1]
self.W = self._get_weight("weights", shape=(n_in, self.n_units), init=self.W_init, init_args=self.W_init_args)
// self.W = tf.compat.v1.get_variable(
// name=self.name + "\W", shape=(self.n_in, self.n_units), initializer=self.W_init,
// dtype=LayersConfig.tf_dtype, **self.W_init_args
// )
if self.b_init:
self.b = self._get_weight("biases", shape=(self.n_units), init=self.b_init, init_args=self.b_init_args)
// self.b = tf.compat.v1.get_variable(
// name=self.name + "\b", shape=(self.n_units), initializer=self.b_init, dtype=LayersConfig.tf_dtype,
// **self.b_init_args
// )
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: 1374e2e6adf4d2bc3fc9983efee06c9ef3f6a08f
Time: 2019-01-15
Author: dhsig552@163.com
File Name: tensorlayer/layers/dense/dropconnect.py
Class Name: DropconnectDense
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: 1374e2e6adf4d2bc3fc9983efee06c9ef3f6a08f
Time: 2019-01-15
Author: dhsig552@163.com
File Name: tensorlayer/layers/dense/quan_dense.py
Class Name: QuanDense
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: 1374e2e6adf4d2bc3fc9983efee06c9ef3f6a08f
Time: 2019-01-15
Author: dhsig552@163.com
File Name: tensorlayer/layers/dense/dropconnect.py
Class Name: DropconnectDense
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: 1374e2e6adf4d2bc3fc9983efee06c9ef3f6a08f
Time: 2019-01-15
Author: dhsig552@163.com
File Name: tensorlayer/layers/dense/dorefa_dense.py
Class Name: DorefaDense
Method Name: build