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

Method __call__

diffusers/src/diffusers/models/resnet_flax.py:32–40  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

30 )
31
32 def __call__(self, hidden_states):
33 batch, height, width, channels = hidden_states.shape
34 hidden_states = jax.image.resize(
35 hidden_states,
36 shape=(batch, height * 2, width * 2, channels),
37 method="nearest",
38 )
39 hidden_states = self.conv(hidden_states)
40 return hidden_states
41
42
43class FlaxDownsample2D(nn.Module):

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected