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