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

Method setup

diffusers/src/diffusers/models/vae_flax.py:75–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 dtype: jnp.dtype = jnp.float32
74
75 def setup(self):
76 self.conv = nn.Conv(
77 self.in_channels,
78 kernel_size=(3, 3),
79 strides=(1, 1),
80 padding=((1, 1), (1, 1)),
81 dtype=self.dtype,
82 )
83
84 def __call__(self, hidden_states):
85 batch, height, width, channels = hidden_states.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected