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

Method setup

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

Source from the content-addressed store, hash-verified

45 dtype: jnp.dtype = jnp.float32
46
47 def setup(self):
48 self.conv = nn.Conv(
49 self.out_channels,
50 kernel_size=(3, 3),
51 strides=(2, 2),
52 padding=((1, 1), (1, 1)), # padding="VALID",
53 dtype=self.dtype,
54 )
55
56 def __call__(self, hidden_states):
57 # 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