ee179f7da155c3cb8129b954db828906886ad4e4,keras/layers/core.py,AutoEncoder,get_output,#AutoEncoder#Any#,402

Before Change



    def get_output(self, train):
        if not train and not self.output_reconstruction:
            return self._get_hidden(train)

        if self.tie_weights:
            for e,d in zip(self.encoders, self.decoders):
                map(self._tranpose_weights, e.get_weights(), d.get_weights())

After Change


        return self.encoder.get_output(train)

    def get_output(self, train):
        decoded = self.decoder.get_output(train)

        if self.tie_weights:
            encoder_params = self.encoder.get_weights()
            decoder_params = self.decoder.get_weights()
            for dec_param, enc_param in zip(decoder_params, encoder_params):
                if len(dec_param.shape) > 1:
                    enc_param = dec_param.T

        return decoded

    def get_config(self):
        return {"name":self.__class__.__name__,
                "encoder_config":self.encoder.get_config(),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: ee179f7da155c3cb8129b954db828906886ad4e4
Time: 2015-06-08
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: get_output


Project Name: dpressel/mead-baseline
Commit Name: 333feee2a2bd4e8a8dc9ed3e12d2223cbe9e0e09
Time: 2019-10-09
Author: dpressel@gmail.com
File Name: python/addons/embed_tlm_pytorch.py
Class Name: TransformerLMEmbeddings
Method Name: forward


Project Name: mil-tokyo/webdnn
Commit Name: aa4d94ea6ffbbf1dcfaa567af3026232a2cb8ab9
Time: 2017-09-17
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/operators/attributes/inplace.py
Class Name: Inplace
Method Name: get_output