ac773ed243154c5408937122bb67f5ec754b29d5,keras/layers/embeddings.py,Embedding,get_output_mask,#Embedding#Any#,87

Before Change


        if not self.mask_zero:
            return None
        else:
            if K._BACKEND == "tensorflow":
                raise Exception("Masking is Theano-only for the time being.")
            return K.ones_like(X) * (1 - K.equal(X, 0))

    @property
    def output_shape(self):

After Change


        if not self.mask_zero:
            return None
        else:
            return K.expand_dims(K.not_equal(X, 0))

    @property
    def output_shape(self):
        return (self.input_shape[0], self.input_length, self.output_dim)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: ac773ed243154c5408937122bb67f5ec754b29d5
Time: 2016-01-17
Author: xavier@whirlscape.com
File Name: keras/layers/embeddings.py
Class Name: Embedding
Method Name: get_output_mask


Project Name: keras-team/keras
Commit Name: 4e5348c5cab9842d8508375d3b6bf06b97d9db50
Time: 2016-03-23
Author: eder@macbook.com
File Name: keras/layers/core.py
Class Name: Siamese
Method Name: get_output_dot


Project Name: keras-team/keras
Commit Name: 4e5348c5cab9842d8508375d3b6bf06b97d9db50
Time: 2016-03-23
Author: eder@macbook.com
File Name: keras/layers/core.py
Class Name: Siamese
Method Name: get_output_cos