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

Method quickGELU

diffsynth/models/sd_text_encoder.py:16–17  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

14 self.use_quick_gelu = use_quick_gelu
15
16 def quickGELU(self, x):
17 return x * torch.sigmoid(1.702 * x)
18
19 def forward(self, hidden_states, attn_mask=None):
20 residual = hidden_states

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected