MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __call__

Method __call__

src/diffusers/models/vae_flax.py:379–386  ·  view source on GitHub ↗
(self, hidden_states, deterministic=True)

Source from the content-addressed store, hash-verified

377 self.upsamplers_0 = FlaxUpsample2D(self.out_channels, dtype=self.dtype)
378
379 def __call__(self, hidden_states, deterministic=True):
380 for resnet in self.resnets:
381 hidden_states = resnet(hidden_states, deterministic=deterministic)
382
383 if self.add_upsample:
384 hidden_states = self.upsamplers_0(hidden_states)
385
386 return hidden_states
387
388
389class FlaxUNetMidBlock2D(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected