ed6171893a9d4e75df11a27f26a19f79d349ea2d,benchmarks/sru.py,SRU,__init__,#SRU#Any#Any#Any#Any#Any#Any#Any#Any#,508
Before Change
self.depth = num_layers
self.dropout = dropout
self.rnn_dropout = rnn_dropout
self.rnn_lst = nn.ModuleList()
self.bidirectional = bidirectional
self.out_size = hidden_size*2 if bidirectional else hidden_size
for i in range(num_layers):
After Change
n_in,
self.size_per_dir*2 if bidirectional else self.size_per_dir
))
self.bias = nn.Parameter(torch.Tensor(
n_out*4 if bidirectional else n_out*2
))
self.init_weight()
def init_weight(self):
val_range = (3.0/self.n_in)**0.5
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pytorch/benchmark
Commit Name: ed6171893a9d4e75df11a27f26a19f79d349ea2d
Time: 2017-09-25
Author: zdevito@fb.com
File Name: benchmarks/sru.py
Class Name: SRU
Method Name: __init__
Project Name: asappresearch/sru
Commit Name: ff242b2a949615a2939e7fbd2dc7b9b81d907aec
Time: 2017-09-08
Author: taolei@Taos-MacBook-Pro.local
File Name: cuda_functional.py
Class Name: SRU
Method Name: __init__
Project Name: SPFlow/SPFlow
Commit Name: 99f6a9b9b366e20ebc300fc5be904308c17c484f
Time: 2020-04-01
Author: steven.lang.mz@gmail.com
File Name: src/spn/algorithms/layerwise/distributions.py
Class Name: Representations
Method Name: __init__