91df825459fd2b6ba587e20730a06333482d7b65,onmt/modules/SRU.py,SRUCell,get_dropout_mask_,#SRUCell#Any#Any#,544

Before Change



    def get_dropout_mask_(self, size, p):
        w = self.weight.data
        return Variable(w.new(*size).bernoulli_(1-p).div_(1-p))


class SRU(nn.Module):
    

After Change



    def get_dropout_mask_(self, size, p):
        w = self.weight.data
        return w.new(*size).bernoulli_(1-p).div_(1-p)


class SRU(nn.Module):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: get_dropout_mask_


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 7b05db6f551e7260f76ff456c25c05de07882650
Time: 2018-05-05
Author: petrochukm@gmail.com
File Name: torchnlp/nn/sru.py
Class Name: SRUCell
Method Name: get_dropout_mask_


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