7c2cf787d2cd4028dd25cb8af19b653c9b459e32,sru/cuda_functional.py,SRU_Compute_GPU,forward,#SRU_Compute_GPU#Any#Any#Any#Any#Any#Any#,488
Before Change
init_ = x.new(ncols).zero_() if init is None else init
size = (length, batch, d * bidir) if x.dim() == 3 else (batch, d * bidir)
c = x.new(*size)
h = x.new(*size)
scale_x = self.scale_x
if skip_type > 0 and k_ == 3:
After Change
init_ = x.new(ncols).zero_() if init is None else init
size = (length, batch, d * bidir) if x.dim() == 3 else (batch, d * bidir)
c = x.new(*size).zero_()
h = x.new(*size).zero_()
scale_x = self.scale_x
if skip_type > 0 and k_ == 3:
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances Project Name: asappresearch/sru
Commit Name: 7c2cf787d2cd4028dd25cb8af19b653c9b459e32
Time: 2019-08-24
Author: taolei@csail.mit.edu
File Name: sru/cuda_functional.py
Class Name: SRU_Compute_GPU
Method Name: forward
Project Name: asappresearch/sru
Commit Name: e25c3820aaa1ebb9c0bf7731467e24a2a2592a54
Time: 2019-10-22
Author: taolei@csail.mit.edu
File Name: sru/cuda_functional.py
Class Name: SRU_Compute_GPU
Method Name: forward
Project Name: OpenNMT/OpenNMT-py
Commit Name: 8a70c277c355fe734a01fe58baafdc2dc5164205
Time: 2016-12-29
Author: alerer@fb.com
File Name: OpenNMT/onmt/Models.py
Class Name: Decoder
Method Name: forward
Project Name: asappresearch/sru
Commit Name: 85754804663f78d73a097b9960129f9a9c89ba0e
Time: 2018-07-25
Author: taolei@csail.mit.edu
File Name: cuda_functional.py
Class Name: SRU_Compute_GPU
Method Name: backward
Project Name: OpenNMT/OpenNMT-py
Commit Name: 8a70c277c355fe734a01fe58baafdc2dc5164205
Time: 2016-12-29
Author: alerer@fb.com
File Name: OpenNMT/onmt/Models.py
Class Name: Encoder
Method Name: forward
Project Name: asappresearch/sru
Commit Name: a7c30233e2b7bde13187843a7d2fd2dcdd409c48
Time: 2018-05-08
Author: kzjeef@gmail.com
File Name: cuda_functional.py
Class Name: SRU_Compute_GPU
Method Name: backward