ecd414d7164613177725c81d023e6a66701de470,keras/layers/recurrent.py,GRU,build,#GRU#,389

Before Change


        self.regularizers = []
        for W in [self.W_z, self.W_r, self.W_h]:
            append_regulariser(self.W_regularizer, W, self.regularizers)
        for U in [self.U_z, self.U_r, self.U_h]:
            append_regulariser(self.U_regularizer, U, self.regularizers)
        for b in [self.b_z, self.b_r, self.b_h]:
            append_regulariser(self.b_regularizer, b, self.regularizers)

        self.trainable_weights = [self.W_z, self.U_z, self.b_z,

After Change



        self.regularizers = []
        if self.W_regularizer:
            self.W_regularizer.set_param(K.concatenate([self.W_z,
                                                        self.W_r,
                                                        self.W_h]))
            self.regularizers.append(self.W_regularizer)
        if self.U_regularizer:
            self.U_regularizer.set_param(K.concatenate([self.U_z,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: ecd414d7164613177725c81d023e6a66701de470
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: GRU
Method Name: build


Project Name: keras-team/keras
Commit Name: ecd414d7164613177725c81d023e6a66701de470
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: build


Project Name: ray-project/ray
Commit Name: 244aafdcf89ae814975c8c4e3faf0bd4995c7878
Time: 2020-09-05
Author: sven@anyscale.io
File Name: rllib/utils/exploration/tests/test_curiosity.py
Class Name: OneHotWrapper
Method Name: observation