025e874aa82058a54a131292f172ac00edb5f239,tensorlayer/layers/recurrent.py,BiRNNLayer,__init__,#BiRNNLayer#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,315

Before Change



                try:
                    self.fw_cell = MultiRNNCell_fn([cell_creator() for _ in range(n_layer)], state_is_tuple=True)
                    self.bw_cell = MultiRNNCell_fn([cell_creator() for _ in range(n_layer)], state_is_tuple=True)
                except Exception:
                    self.fw_cell = MultiRNNCell_fn([cell_creator() for _ in range(n_layer)])
                    self.bw_cell = MultiRNNCell_fn([cell_creator() for _ in range(n_layer)])

After Change



                try:
                    self.fw_cell = MultiRNNCell_fn([cell_creator(is_last=i == n_layer - 1) for i in range(n_layer)], state_is_tuple=True)
                    self.bw_cell = MultiRNNCell_fn([cell_creator(is_last=i == n_layer - 1) for i in range(n_layer)], state_is_tuple=True)
                except Exception:
                    self.fw_cell = MultiRNNCell_fn([cell_creator(is_last=i == n_layer - 1) for i in range(n_layer)])
                    self.bw_cell = MultiRNNCell_fn([cell_creator(is_last=i == n_layer - 1) for i in range(n_layer)])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 025e874aa82058a54a131292f172ac00edb5f239
Time: 2018-02-23
Author: simiao.yu3@gmail.com
File Name: tensorlayer/layers/recurrent.py
Class Name: BiRNNLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 025e874aa82058a54a131292f172ac00edb5f239
Time: 2018-02-23
Author: simiao.yu3@gmail.com
File Name: tensorlayer/layers/recurrent.py
Class Name: DynamicRNNLayer
Method Name: __init__


Project Name: tensorlayer/tensorlayer
Commit Name: 36ff5f95fcdba5cad69cb2504a48d51f806354eb
Time: 2018-02-01
Author: zhaohao.zeng93@gmail.com
File Name: tensorlayer/layers.py
Class Name: BiDynamicRNNLayer
Method Name: __init__