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

Method setup

diffusers/src/diffusers/models/resnet_flax.py:23–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21 dtype: jnp.dtype = jnp.float32
22
23 def setup(self):
24 self.conv = nn.Conv(
25 self.out_channels,
26 kernel_size=(3, 3),
27 strides=(1, 1),
28 padding=((1, 1), (1, 1)),
29 dtype=self.dtype,
30 )
31
32 def __call__(self, hidden_states):
33 batch, height, width, channels = hidden_states.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected