Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/computational-imaging/bacon
/ Swish
Class
Swish
modules.py:87–92 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
85
86
87
class
Swish(nn.Module):
88
def
__init__(self):
89
super().__init__()
90
91
def
forward(self, input):
92
return
input*torch.sigmoid(input)
93
94
95
def
mfn_weights_init(m):
Callers
1
layer_factory
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected