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

Method forward

diffsynth/models/sd_unet.py:26–28  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

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)
28 return hidden_states * torch.nn.functional.gelu(gate)
29
30
31class BasicTransformerBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

geluMethod · 0.80

Tested by

no test coverage detected