MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/models/sd_unet.py:22–24  ·  view source on GitHub ↗
(self, dim_in, dim_out)

Source from the content-addressed store, hash-verified

20class GEGLU(torch.nn.Module):
21
22 def __init__(self, dim_in, dim_out):
23 super().__init__()
24 self.proj = torch.nn.Linear(dim_in, dim_out * 2)
25
26 def forward(self, hidden_states):
27 hidden_states, gate = self.proj(hidden_states).chunk(2, dim=-1)

Callers 9

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected