MCPcopy Create free account
hub / github.com/computational-imaging/bacon / MSoftplus

Class MSoftplus

modules.py:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77class MSoftplus(nn.Module):
78 def __init__(self):
79 super().__init__()
80 self.softplus = nn.Softplus()
81 self.cst = torch.log(torch.tensor(2.))
82
83 def forward(self, input):
84 return self.softplus(input)-self.cst
85
86
87class Swish(nn.Module):

Callers 1

layer_factoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected