(dim, mult=4)
| 58 | return self.to_out(out) |
| 59 | |
| 60 | def 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 | |
| 69 | class FacePerceiver(torch.nn.Module): |
| 70 | def __init__( |