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

Method __call__

diffusers/src/diffusers/models/vae_flax.py:84–92  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

82 )
83
84 def __call__(self, hidden_states):
85 batch, height, width, channels = hidden_states.shape
86 hidden_states = jax.image.resize(
87 hidden_states,
88 shape=(batch, height * 2, width * 2, channels),
89 method="nearest",
90 )
91 hidden_states = self.conv(hidden_states)
92 return hidden_states
93
94
95class FlaxDownsample2D(nn.Module):

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected