d3bdc5449964423387861c78edd9d890a81a5466,tensorlayer/layers/recurrent.py,RNN,build,#RNN#Any#,223

Before Change



        if self._weights is None:
            self._weights = list()
        self._weights.append(self.cell.weights)

    def forward(self, inputs, **kwargs):
        
        Parameters

After Change


        if len(inputs_shape) != 3:
            raise Exception("RNN : Input dimension should be rank 3 : [batch_size, n_steps, n_features]")

        with tf.name_scope(self.name) as scope:
            self.cell.build(tuple(inputs_shape))

        if self._weights is None:
            self._weights = list()
        for var in self.cell.trainable_variables:
            self._weights.append(var)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: d3bdc5449964423387861c78edd9d890a81a5466
Time: 2019-03-31
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/recurrent.py
Class Name: RNN
Method Name: build


Project Name: NervanaSystems/nlp-architect
Commit Name: c67aabab14b14fdef4b7e0ac576e2178dfb272b3
Time: 2019-03-06
Author: peteriz@users.noreply.github.com
File Name: setup.py
Class Name:
Method Name:


Project Name: deepmipt/DeepPavlov
Commit Name: e258ef3ea167b86d6680bfcc513dd207586b90f4
Time: 2018-07-03
Author: yoptar@gmail.com
File Name: setup.py
Class Name:
Method Name: read_requirements