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

Method __init__

python/dump.py:204–206  ·  view source on GitHub ↗
(self, dim_in, dim_out)

Source from the content-addressed store, hash-verified

202
203class GEGLU:
204 def __init__(self, dim_in, dim_out):
205 self.proj = Linear(dim_in, dim_out * 2)
206 self.dim_out = dim_out
207
208 def __call__(self, x):
209 x, gate = self.proj(x).chunk(2, dim=-1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected