Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Stability-AI/generative-models
/ __init__
Method
__init__
sgm/modules/attention.py:83–85 ·
view source on GitHub ↗
(self, dim_in, dim_out)
Source
from the content-addressed store, hash-verified
81
# feedforward
82
class
GEGLU(nn.Module):
83
def
__init__(self, dim_in, dim_out):
84
super().__init__()
85
self.proj = nn.Linear(dim_in, dim_out * 2)
86
87
def
forward(self, x):
88
x, gate = self.proj(x).chunk(2, dim=-1)
Callers
8
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected