Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete): Hidden states conditioned on `encoder_hidden_states` input. If discrete, returns prob
| 28 | |
| 29 | @dataclass |
| 30 | class Transformer2DModelOutput(BaseOutput): |
| 31 | """ |
| 32 | Args: |
| 33 | sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete): |
| 34 | Hidden states conditioned on `encoder_hidden_states` input. If discrete, returns probability distributions |
| 35 | for the unnoised latent pixels. |
| 36 | """ |
| 37 | |
| 38 | sample: torch.FloatTensor |
| 39 | |
| 40 | |
| 41 | class Transformer2DModel(ModelMixin, ConfigMixin): |