MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / FeedForward

Function FeedForward

animation/modules/id_encoder.py:60–67  ·  view source on GitHub ↗
(dim, mult=4)

Source from the content-addressed store, hash-verified

58 return self.to_out(out)
59
60def FeedForward(dim, mult=4):
61 inner_dim = int(dim * mult)
62 return nn.Sequential(
63 nn.LayerNorm(dim),
64 nn.Linear(dim, inner_dim, bias=False),
65 nn.GELU(),
66 nn.Linear(inner_dim, dim, bias=False),
67 )
68
69class FacePerceiver(torch.nn.Module):
70 def __init__(

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected