Output of VQModel encoding method. Args: latents (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`): The encoded output sample from the last layer of the model.
| 26 | |
| 27 | @dataclass |
| 28 | class VQEncoderOutput(BaseOutput): |
| 29 | """ |
| 30 | Output of VQModel encoding method. |
| 31 | |
| 32 | Args: |
| 33 | latents (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`): |
| 34 | The encoded output sample from the last layer of the model. |
| 35 | """ |
| 36 | |
| 37 | latents: torch.FloatTensor |
| 38 | |
| 39 | |
| 40 | class VQModel(ModelMixin, ConfigMixin): |