Skip to content

Commit d90852c

Browse files
committed
add sigmoid and softplus nonlinearities
1 parent 0c9b6c5 commit d90852c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nequip/nn/mlp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"gelu": torch.nn.GELU,
2323
"ssp": ShiftedSoftplus,
2424
"tanh": torch.nn.Tanh,
25+
# not 0 -> 0
26+
"sigmoid": torch.nn.Sigmoid,
27+
"softplus": torch.nn.Softplus,
2528
}
2629

2730

0 commit comments

Comments
 (0)