Skip to content

Commit

Permalink
Fix nonlinearity conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Petar Veličković committed Dec 29, 2018
1 parent 5f3c07e commit 0afce4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class GCN(nn.Module):
def __init__(self, in_ft, out_ft, act, bias=True):
super(GCN, self).__init__()
self.fc = nn.Linear(in_ft, out_ft, bias=False)
self.act = nn.PReLU() if 'prelu' else act
self.act = nn.PReLU() if act == 'prelu' else act

if bias:
self.bias = nn.Parameter(torch.FloatTensor(out_ft))
Expand Down

0 comments on commit 0afce4e

Please sign in to comment.