Skip to content

Commit a350d9a

Browse files
authored
Update graphgym/custom_graphgym/act/example.py
1 parent 1a738c4 commit a350d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphgym/custom_graphgym/act/example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def forward(self, x):
2020
return x * torch.sigmoid(x)
2121

2222

23-
register_act('swish', lambda: SWISH(inplace=cfg.mem.inplace))
23+
register_act('swish', partial(SWISH, inplace=cfg.mem.inplace))
2424
register_act('lrelu_03', partial(nn.LeakyReLU, 0.3, inplace=cfg.mem.inplace))

0 commit comments

Comments
 (0)