Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ __init__
Method
__init__
ldm/modules/attention.py:50–52 ·
view source on GitHub ↗
(self, dim_in, dim_out)
Source
from the content-addressed store, hash-verified
48
# feedforward
49
class
GEGLU(nn.Module):
50
def
__init__(self, dim_in, dim_out):
51
super().__init__()
52
self.proj = nn.Linear(dim_in, dim_out * 2)
53
54
def
forward(self, x):
55
x, gate = self.proj(x).chunk(2, dim=-1)
Callers
6
__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