(self)
| 454 | dtype: jnp.dtype = jnp.float32 |
| 455 | |
| 456 | def setup(self): |
| 457 | # The second linear layer needs to be called |
| 458 | # net_2 for now to match the index of the Sequential layer |
| 459 | self.net_0 = FlaxGEGLU(self.dim, self.dropout, self.dtype) |
| 460 | self.net_2 = nn.Dense(self.dim, dtype=self.dtype) |
| 461 | |
| 462 | def __call__(self, hidden_states, deterministic=True): |
| 463 | hidden_states = self.net_0(hidden_states, deterministic=deterministic) |