MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / QuickGELU

Class QuickGELU

clip/model.py:162–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162class QuickGELU(nn.Module):
163 def forward(self, x: torch.Tensor):
164 return x * torch.sigmoid(1.702 * x)
165
166
167class ResidualAttentionBlock(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected