60bb3aa4b32751ba7b8ee3a8e79b360626c80855,tensorlayer/layers/recurrent.py,BiDynamicRNNLayer,__init__,#BiDynamicRNNLayer#,1253

Before Change


                    try:  // TF1.0
                        self.outputs = tf.reshape(tf.concat(outputs, 1), [-1, 2 * n_hidden])
                    except Exception:  // TF0.12
                        self.outputs = tf.reshape(tf.concat(1, outputs), [-1, 2 * n_hidden])
                else:
                    // <akara>:
                    // 3D Tensor [batch_size, n_steps(max), 2 * n_hidden]
                    max_length = tf.shape(outputs)[1]
                    batch_size = tf.shape(outputs)[0]
                    try:  // TF1.0
                        self.outputs = tf.reshape(tf.concat(outputs, 1), [batch_size, max_length, 2 * n_hidden])
                    except Exception:  // TF0.12
                        self.outputs = tf.reshape(tf.concat(1, outputs), [batch_size, max_length, 2 * n_hidden])

After Change


                    max_length = tf.shape(outputs)[1]
                    batch_size = tf.shape(outputs)[0]
                    try:  // TF1.0
                        self.outputs = tf.reshape(tf.concat(outputs, 1), [batch_size, max_length, 2 * n_hidden])
                    except Exception:  // TF0.12
                        self.outputs = tf.reshape(tf.concat(1, outputs), [batch_size, max_length, 2 * n_hidden])

        // Final state
        self.fw_final_states = states_fw
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 60bb3aa4b32751ba7b8ee3a8e79b360626c80855
Time: 2018-03-14
Author: dhsig552@163.com
File Name: tensorlayer/layers/recurrent.py
Class Name: BiDynamicRNNLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 60bb3aa4b32751ba7b8ee3a8e79b360626c80855
Time: 2018-03-14
Author: dhsig552@163.com
File Name: tensorlayer/layers/recurrent.py
Class Name: BiRNNLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 60bb3aa4b32751ba7b8ee3a8e79b360626c80855
Time: 2018-03-14
Author: dhsig552@163.com
File Name: tensorlayer/layers/recurrent.py
Class Name: RNNLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 60bb3aa4b32751ba7b8ee3a8e79b360626c80855
Time: 2018-03-14
Author: dhsig552@163.com
File Name: tensorlayer/layers/recurrent.py
Class Name: DynamicRNNLayer
Method Name: __init__