15fea0488abef42d59498d9a02e3b33fb9c7d222,keras/layers/core.py,TimeDistributedMerge,get_output,#TimeDistributedMerge#Any#,258

Before Change


        if self.mode == "sum" or self.mode == "ave":
            s = theano.tensor.sum(X, axis=1)
            if self.mode == "ave":
                s /= X.shape[1]
            return s
        elif self.mode == "mul":
            s = theano.tensor.mul(X, axis=1)
            return s

After Change


    def get_output(self, train=False):
        X = self.get_input(train)
        if self.mode == "ave":
            s = theano.tensor.mean(X, axis=1)
            return s
        if self.mode == "sum":
            s = theano.tensor.sum(X, axis=1)
            return s
        elif self.mode == "mul":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: 15fea0488abef42d59498d9a02e3b33fb9c7d222
Time: 2015-11-14
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: TimeDistributedMerge
Method Name: get_output


Project Name: keras-team/keras
Commit Name: db60707cb8c1461b9437418685e66891cbf4efc9
Time: 2015-11-09
Author: nir.tzachar@gmail.com
File Name: keras/layers/core.py
Class Name: TimeDistributedMerge
Method Name: get_output


Project Name: NervanaSystems/coach
Commit Name: 6c79a442f2fdf6b88002510fc4ed60265ba7f6c9
Time: 2018-01-05
Author: zach.dwiel@intel.com
File Name: utils.py
Class Name: Signal
Method Name: get_mean