MCPcopy 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
149class 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
155class 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