bed4f2dd50ff54eb7629362c3d03a3b758e0745a,spotlight/layers.py,BloomEmbedding,forward,#BloomEmbedding#Any#,115
 
Before Change
                              .expand(batch_size, self.num_hash_functions))
        masks = self._mask_tensor.expand(batch_size, self.num_hash_functions)
        compressed_indices = compressed_indices.detach()
        compressed_indices = Variable((compressed_indices.data * masks.data) %
                                      self.compressed_num_embeddings)
        return self.embeddings(compressed_indices).mean(1)
After Change
        embedding /= self.num_hash_functions
        return embedding

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
 Project Name: maciejkula/spotlight
 Commit Name: bed4f2dd50ff54eb7629362c3d03a3b758e0745a
 Time: 2017-08-09
 Author: maciej.kula@gmail.com
 File Name: spotlight/layers.py
 Class Name: BloomEmbedding
 Method Name: forward
 Project Name: chainer/chainercv
 Commit Name: 88420cc2658b3f3d0d228518ab0ce9ba4d663bdf
 Time: 2017-05-02
 Author: Hakuyume@users.noreply.github.com
 File Name: chainercv/utils/testing.py
 Class Name: StubLink
 Method Name: __call__
 Project Name: PetrochukM/PyTorch-NLP
 Commit Name: 7b05db6f551e7260f76ff456c25c05de07882650
 Time: 2018-05-05
 Author: petrochukm@gmail.com
 File Name: examples/awd-lstm-lm/utils.py
 Class Name: 
 Method Name: repackage_hidden