Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/computational-imaging/bacon
/ __init__
Method
__init__
modules.py:78–81 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
76
77
class
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
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected