MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/attention.py:54–56  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

52 self.proj = nn.Linear(dim_in, dim_out * 2)
53
54 def forward(self, x):
55 x, gate = self.proj(x).chunk(2, dim=-1)
56 return x * F.gelu(gate)
57
58
59class FeedForward(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected