MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / swiglu

Method swiglu

diffusers/src/diffusers/pipelines/kolors/text_encoder.py:455–457  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

453 )
454
455 def swiglu(x):
456 x = torch.chunk(x, 2, dim=-1)
457 return F.silu(x[0]) * x[1]
458
459 self.activation_func = swiglu
460

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected