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

Class UNet2DOutput

diffusers/src/diffusers/models/unets/unet_2d.py:28–37  ·  view source on GitHub ↗

The output of [`UNet2DModel`]. Args: sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)`): The hidden states output from the last layer of the model.

Source from the content-addressed store, hash-verified

26
27@dataclass
28class UNet2DOutput(BaseOutput):
29 """
30 The output of [`UNet2DModel`].
31
32 Args:
33 sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)`):
34 The hidden states output from the last layer of the model.
35 """
36
37 sample: torch.Tensor
38
39
40class UNet2DModel(ModelMixin, ConfigMixin):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected