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

Method setup

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

Source from the content-addressed store, hash-verified

107 dtype: jnp.dtype = jnp.float32
108
109 def setup(self):
110 self.conv = nn.Conv(
111 self.in_channels,
112 kernel_size=(3, 3),
113 strides=(2, 2),
114 padding="VALID",
115 dtype=self.dtype,
116 )
117
118 def __call__(self, hidden_states):
119 pad = ((0, 0), (0, 1), (0, 1), (0, 0)) # pad height and width dim

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected