fc850582ced2b873507493a7a6eafd7bcc9a24e2,sru/sru_functional.py,SRUCell,reset_parameters,#SRUCell#,281

Before Change


        if self.rnn_dropout > 0:
            w.mul_((1-self.rnn_dropout)**0.5)
        if self.is_input_normalized:
            w.mul_(0.25)
            self.weight_c.data.mul_(0.25)

        self.scale_x.data[0] = 1
        if not self.rescale:

After Change


            w.mul_((1-self.rnn_dropout)**0.5)
        //if self.is_input_normalized:
        if self.layer_norm:
            w.mul_(0.1)
            //self.weight_c.data.mul_(0.25)

        self.scale_x.data[0] = 1
        if not self.rescale:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: asappresearch/sru
Commit Name: fc850582ced2b873507493a7a6eafd7bcc9a24e2
Time: 2019-09-11
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: SRUCell
Method Name: reset_parameters


Project Name: asappresearch/sru
Commit Name: fc850582ced2b873507493a7a6eafd7bcc9a24e2
Time: 2019-09-11
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: tSRUCell
Method Name: reset_parameters


Project Name: asappresearch/sru
Commit Name: 6acdbcfffa5674676dc88c94af3e555f3fa64d17
Time: 2019-10-22
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: tSRUCell
Method Name: reset_parameters


Project Name: asappresearch/sru
Commit Name: 6acdbcfffa5674676dc88c94af3e555f3fa64d17
Time: 2019-10-22
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: SRUCell
Method Name: reset_parameters