MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / __init__

Method __init__

python/dump.py:213–218  ·  view source on GitHub ↗
(self, dim, mult=4)

Source from the content-addressed store, hash-verified

211
212class FeedForward:
213 def __init__(self, dim, mult=4):
214 self.net = [
215 GEGLU(dim, dim*mult),
216 lambda x: x, # needed for weights loading code to work
217 Linear(dim*mult, dim)
218 ]
219
220 def __call__(self, x):
221 return x.sequential(self.net)

Callers

nothing calls this directly

Calls 1

GEGLUClass · 0.70

Tested by

no test coverage detected