47ed18a3af8be20dce91286a331d4671074ee0ca,keras/layers/recurrent.py,LSTM,build,#LSTM#,398

Before Change



        self.W_i = self.init((input_dim, self.output_dim))
        self.U_i = self.inner_init((self.output_dim, self.output_dim))
        self.b_i = shared_zeros((self.output_dim))

        self.W_f = self.init((input_dim, self.output_dim))
        self.U_f = self.inner_init((self.output_dim, self.output_dim))
        self.b_f = self.forget_bias_init((self.output_dim))

After Change


        self.input = K.placeholder(input_shape)

        if self.stateful:
            if not input_shape[0]:
                raise Exception("If a RNN is stateful, a complete " +
                                "input_shape must be provided " +
                                "(including batch size).")
            self.states = [K.zeros(input_shape[0], self.output_dim),
                           K.zeros(input_shape[0], self.output_dim)]
        else:
            // initial states: 2 all-zero tensor of shape (output_dim)
            self.states = [None, None]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 47ed18a3af8be20dce91286a331d4671074ee0ca
Time: 2015-11-26
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: build


Project Name: keras-team/keras
Commit Name: 47ed18a3af8be20dce91286a331d4671074ee0ca
Time: 2015-11-26
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: GRU
Method Name: build


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 31a87fa3f9347e9ab4aa53772373ae0f7a0731ad
Time: 2016-09-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name: SpikeAveragePooling2D
Method Name: get_output


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 31a87fa3f9347e9ab4aa53772373ae0f7a0731ad
Time: 2016-09-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name: SpikeDense
Method Name: get_output