fba10af9db5edd61f78ccdb9d115c4eafbcc561d,fairseq/search.py,BeamSearch,step,#BeamSearch#Any#Any#Any#,59

Before Change


            ),
            out=(self.scores_buf, self.indices_buf),
        )
        torch.div(self.indices_buf, vocab_size, out=self.beams_buf)
        self.indices_buf.fmod_(vocab_size)
        return self.scores_buf, self.indices_buf, self.beams_buf

After Change


        )
        self.scores_buf = top_prediction[0]
        self.indices_buf = top_prediction[1]
        self.beams_buf = torch.div(self.indices_buf, vocab_size)
        self.indices_buf.fmod_(vocab_size)
        return self.scores_buf, self.indices_buf, self.beams_buf

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 3

Instances


Project Name: elbayadm/attn2d
Commit Name: fba10af9db5edd61f78ccdb9d115c4eafbcc561d
Time: 2020-02-14
Author: chenliu8@fb.com
File Name: fairseq/search.py
Class Name: BeamSearch
Method Name: step


Project Name: opencv/opencv_extra
Commit Name: bed7423b1cf2d3f4b20d4b4bf52d614ede63cd28
Time: 2019-11-14
Author: piccione-mail@yandex.ru
File Name: testdata/dnn/onnx/generate_onnx_models.py
Class Name: ReduceL2
Method Name: forward


Project Name: pytorch/fairseq
Commit Name: b3ca86a800729222e770937d6454f65ab5947ec5
Time: 2020-02-24
Author: chenliu8@fb.com
File Name: fairseq/search.py
Class Name: DiverseSiblingsSearch
Method Name: step


Project Name: cornellius-gp/gpytorch
Commit Name: 10f7e5ffaa583d09912e72e82353fe64814e7967
Time: 2018-11-08
Author: gardner.jake@gmail.com
File Name: gpytorch/mlls/variational_elbo.py
Class Name: VariationalELBO
Method Name: forward


Project Name: commonsense/conceptnet5
Commit Name: 0d768b06d5aea91bd6f8755e605f2c706a9373f8
Time: 2016-02-24
Author: rob@luminoso.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: standardize_row_labels