(self)
| 484 | dtype: jnp.dtype = jnp.float32 |
| 485 | |
| 486 | def setup(self): |
| 487 | inner_dim = self.dim * 4 |
| 488 | self.proj = nn.Dense(inner_dim * 2, dtype=self.dtype) |
| 489 | self.dropout_layer = nn.Dropout(rate=self.dropout) |
| 490 | |
| 491 | def __call__(self, hidden_states, deterministic=True): |
| 492 | hidden_states = self.proj(hidden_states) |
nothing calls this directly
no outgoing calls
no test coverage detected