We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a738c4 commit a350d9aCopy full SHA for a350d9a
graphgym/custom_graphgym/act/example.py
@@ -20,5 +20,5 @@ def forward(self, x):
20
return x * torch.sigmoid(x)
21
22
23
-register_act('swish', lambda: SWISH(inplace=cfg.mem.inplace))
+register_act('swish', partial(SWISH, inplace=cfg.mem.inplace))
24
register_act('lrelu_03', partial(nn.LeakyReLU, 0.3, inplace=cfg.mem.inplace))
0 commit comments