1ecc1478ecf2d3a8a8a77f5867e56a420faf94e8,sru/sru_functional.py,SRUCell,reset_parameters,#SRUCell#,294

Before Change


        self.bias.data.zero_()
        bias_val, n_out = self.highway_bias, self.n_out
        if self.bidirectional:
            self.bias.data[n_out*2:].zero_().add_(bias_val)
        else:
            self.bias.data[n_out:].zero_().add_(bias_val)

        if not self.v1:

After Change


        // initialize bias
        self.bias.data.zero_()
        bias_val, output_size = self.highway_bias, self.output_size
        self.bias.data[output_size:].zero_().add_(bias_val)

        // projection matrix as a tensor of size: 
        //    (input_size, bidirection, hidden_size, num_matrices)
        w = self.weight.data.view(d, -1, self.hidden_size, self.num_matrices)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: asappresearch/sru
Commit Name: 1ecc1478ecf2d3a8a8a77f5867e56a420faf94e8
Time: 2019-10-22
Author: tao@asapp.com
File Name: sru/sru_functional.py
Class Name: SRUCell
Method Name: reset_parameters


Project Name: asappresearch/sru
Commit Name: c23741d1700f99b85bda3d0da2bf341e5d10a44b
Time: 2019-10-16
Author: tao@asapp.com
File Name: sru/sru_functional.py
Class Name: SRUCell
Method Name: reset_parameters


Project Name: ray-project/ray
Commit Name: a65ee92b69c9dfa05defbee17abd7af09103f88e
Time: 2021-01-19
Author: sven@anyscale.io
File Name: rllib/agents/marwil/marwil_torch_policy.py
Class Name:
Method Name: marwil_loss