Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meshcapade/difflocks
/ Linear
Class
Linear
k_diffusion/models/modules.py:149–152 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
147
# Layers
148
149
class
Linear(nn.Linear):
150
def
forward(self, x):
151
flops.op(flops.op_linear, x.shape, self.weight.shape)
152
return
super().forward(x)
153
154
155
class
LinearGEGLU(nn.Linear):
Callers
10
__init__
Method · 0.90
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected