6f528bb277012ec96bae86c30ef1dbd5eb3c2130,tensorlayer/layers.py,Conv3dLayer,__init__,#Conv3dLayer#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,1398

Before Change


        // n_in = layer.n_units
        print("  tensorlayer:Instantiate Conv3dLayer %s: %s, %s, %s, %s" % (self.name, str(shape), str(strides), padding, act))

        W = tf.Variable(W_init(shape=shape, **W_init_args), name="W_conv")
        b = tf.Variable(b_init(shape=[shape[-1]], **b_init_args), name="b_conv")

        self.outputs = act( tf.nn.conv3d(self.inputs, W, strides=strides, padding=padding, name=None) + b )


        self.all_layers = list(layer.all_layers)

After Change


        // n_in = layer.n_units
        print("  tensorlayer:Instantiate Conv3dLayer %s: %s, %s, %s, %s" % (self.name, str(shape), str(strides), padding, act))

        with tf.variable_scope(name) as vs:
            // W = tf.Variable(W_init(shape=shape, **W_init_args), name="W_conv")
            // b = tf.Variable(b_init(shape=[shape[-1]], **b_init_args), name="b_conv")
            W = tf.get_variable(name="W_conv2d", shape=shape, initializer=W_init, **W_init_args )
            b = tf.get_variable(name="b_conv2d", shape=(shape[-1]), initializer=b_init, **b_init_args )

        self.outputs = act( tf.nn.conv3d(self.inputs, W, strides=strides, padding=padding, name=None) + b )


        self.all_layers = list(layer.all_layers)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

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: Conv3dLayer
Method Name: __init__


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: tensorlayer/tensorlayer
Commit Name: 6f528bb277012ec96bae86c30ef1dbd5eb3c2130
Time: 2016-07-21
Author: haodong@dyn1227-42.wlan.ic.ac.uk
File Name: tensorlayer/layers.py
Class Name: Conv2dLayer
Method Name: __init__


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__