Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zhiyuan-R/Tiger-Diffusion
/ Swish
Class
Swish
modules/shared_mlp.py:7–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
6
7
class
Swish(nn.Module):
8
def
forward(self,x):
9
return
x * torch.sigmoid(x)
10
11
class
SharedMLP(nn.Module):
12
def
__init__(self, in_channels, out_channels, dim=1):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected