128ea5274db96163c58a99405e7205abcab36192,onmt/Translator.py,Translator,_runTarget,#Translator#Any#Any#,58

Before Change


        decOut, decStates, attn = self.model.decoder(
            batch.tgt[:-1], batch.src, context, decStates)

        aeq(decOut.size(), batch.tgt[1:].data.size())
        for dec, tgt in zip(decOut, batch.tgt[1:].data):
            // Log prob of each word.
            out = self.model.generator.forward(dec)

After Change



        //  (2) if a target is specified, compute the "goldScore"
        //  (i.e. log likelihood) of the target under the model
        goldScores = torch.FloatTensor(batch.batch_size).fill_(0)
        decOut, decStates, attn = self.model.decoder(
            batch.tgt[:-1], src, context, decStates)

        // print(decOut.size(), batch.tgt[1:].data.size())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 128ea5274db96163c58a99405e7205abcab36192
Time: 2017-08-28
Author: srush@seas.harvard.edu
File Name: onmt/Translator.py
Class Name: Translator
Method Name: _runTarget


Project Name: allenai/allennlp
Commit Name: 5acb5a785b9ed60743e6f687a96bd92dd4e88578
Time: 2017-11-29
Author: markn@allenai.org
File Name: allennlp/modules/seq2vec_encoders/pytorch_seq2vec_wrapper.py
Class Name: PytorchSeq2VecWrapper
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: d7bd8bca1dd54a8255afffb462b84c8b9c3b7eca
Time: 2017-10-25
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/functional/spline_gcn/edgewise_spline_weighting_cpu.py
Class Name: _EdgewiseSplineGcn
Method Name: backward