e89329d6657e0dbc35d93f663363141ac2da5cdb,fairseq/models/lstm.py,LSTMDecoder,forward,#LSTMDecoder#Any#Any#Any#,281

Before Change


            num_layers = len(self.layers)
            prev_hiddens = [encoder_hiddens[i] for i in range(num_layers)]
            prev_cells = [encoder_cells[i] for i in range(num_layers)]
            input_feed = Variable(x.data.new(bsz, self.encoder_output_units).zero_())

        attn_scores = Variable(x.data.new(srclen, seqlen, bsz).zero_())
        outs = []
        for j in range(seqlen):

After Change


            num_layers = len(self.layers)
            prev_hiddens = [encoder_hiddens[i] for i in range(num_layers)]
            prev_cells = [encoder_cells[i] for i in range(num_layers)]
            input_feed = x.data.new(bsz, self.encoder_output_units).zero_()

        attn_scores = x.data.new(srclen, seqlen, bsz).zero_()
        outs = []
        for j in range(seqlen):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 15

Non-data size: 3

Instances


Project Name: pytorch/fairseq
Commit Name: e89329d6657e0dbc35d93f663363141ac2da5cdb
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/models/lstm.py
Class Name: LSTMDecoder
Method Name: forward


Project Name: horovod/horovod
Commit Name: 67c7f8871ce4b925d607ceec034b93d0ba9bb284
Time: 2018-09-26
Author: alexander.sergeev@live.com
File Name: horovod/torch/__init__.py
Class Name:
Method Name: broadcast_optimizer_state


Project Name: OpenNMT/OpenNMT-py
Commit Name: 91df825459fd2b6ba587e20730a06333482d7b65
Time: 2018-06-08
Author: ubuntu@LatentAttention.xydxq15atrkupdp5x5clbbjsrf.xx.internal.cloudapp.net
File Name: onmt/modules/SRU.py
Class Name: SRUCell
Method Name: forward


Project Name: asappresearch/sru
Commit Name: cece98b06174893b6f793454da2ddd172979239e
Time: 2020-01-29
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: SRU
Method Name: forward


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: 5f4f3d1aa7f3e5ac7bfd1f950454bcf7ad672f8e
Time: 2018-04-14
Author: rluo@ttic.edu
File Name: models/AttModel.py
Class Name: AttModel
Method Name: _sample_beam


Project Name: mozilla/TTS
Commit Name: 4ab8cbb0163b41c5af5d58d2d0c1c1a62034a45e
Time: 2018-05-10
Author: egolge@mozilla.com
File Name: layers/tacotron.py
Class Name: Decoder
Method Name: forward


Project Name: OpenNMT/OpenNMT-py
Commit Name: 91df825459fd2b6ba587e20730a06333482d7b65
Time: 2018-06-08
Author: ubuntu@LatentAttention.xydxq15atrkupdp5x5clbbjsrf.xx.internal.cloudapp.net
File Name: onmt/modules/SRU.py
Class Name: SRU
Method Name: forward


Project Name: r9y9/deepvoice3_pytorch
Commit Name: 77b4642e9ba4ed3f9ebd9df7eed7913f3c6f20da
Time: 2018-05-03
Author: zryuichi@gmail.com
File Name: deepvoice3_pytorch/nyanko.py
Class Name: Decoder
Method Name: incremental_forward


Project Name: r9y9/deepvoice3_pytorch
Commit Name: 77b4642e9ba4ed3f9ebd9df7eed7913f3c6f20da
Time: 2018-05-03
Author: zryuichi@gmail.com
File Name: deepvoice3_pytorch/deepvoice3.py
Class Name: Decoder
Method Name: incremental_forward


Project Name: elbayadm/attn2d
Commit Name: e89329d6657e0dbc35d93f663363141ac2da5cdb
Time: 2018-06-15
Author: myleott@fb.com
File Name: fairseq/models/lstm.py
Class Name: LSTMEncoder
Method Name: forward


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 8f6a6f153781d0908fb0904349aae844494026ea
Time: 2018-12-03
Author: yanzhaoyi@outlook.com
File Name: models/InnerShiftTripleFunction.py
Class Name: InnerShiftTripleFunction
Method Name: backward


Project Name: r9y9/deepvoice3_pytorch
Commit Name: 77b4642e9ba4ed3f9ebd9df7eed7913f3c6f20da
Time: 2018-05-03
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name: spec_loss