6acdbcfffa5674676dc88c94af3e555f3fa64d17,sru/sru_functional.py,tSRUCell,__init__,#tSRUCell#Any#Any#Any#Any#Any#Any#Any#,617
Before Change
self.n_proj = n_proj
if self.n_proj == 0:
self.weight = nn.Parameter(torch.Tensor(
n_in,
n_out*4 if bidirectional else n_out*2
))
else:
self.weight_proj = nn.Parameter(torch.Tensor(n_in, self.n_proj))
self.weight = nn.Parameter(torch.Tensor(
self.n_proj,
After Change
self.n_proj = n_proj
if self.n_proj == 0:
self.weight = nn.Parameter(torch.Tensor(
n_in,
out_size*2
))
else:
self.weight_proj = nn.Parameter(torch.Tensor(n_in, self.n_proj))
self.weight = nn.Parameter(torch.Tensor(
self.n_proj,
out_size*2
))
self.weight_c = nn.Parameter(torch.Tensor(out_size))
self.bias = nn.Parameter(torch.Tensor(out_size))
if layer_norm:
self.layer_norm = nn.LayerNorm(self.n_in)
else:
self.layer_norm = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: asappresearch/sru
Commit Name: 6acdbcfffa5674676dc88c94af3e555f3fa64d17
Time: 2019-10-22
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: tSRUCell
Method Name: __init__
Project Name: asappresearch/sru
Commit Name: fc850582ced2b873507493a7a6eafd7bcc9a24e2
Time: 2019-09-11
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name: tSRUCell
Method Name: __init__
Project Name: rusty1s/pytorch_geometric
Commit Name: e60669c5aa467d5c11a508c01b37c4ed8e352fa6
Time: 2021-02-15
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/supergat_conv.py
Class Name: SuperGATConv
Method Name: __init__