MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / setup

Method setup

diffusers/src/diffusers/models/attention_flax.py:486–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected