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

Method setup

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

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

FlaxGEGLUClass · 0.85

Tested by

no test coverage detected