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

Class VQEncoderOutput

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

Output of VQModel encoding method. Args: latents (`torch.Tensor` of shape `(batch_size, num_channels, height, width)`): The encoded output sample from the last layer of the model.

Source from the content-addressed store, hash-verified

26
27@dataclass
28class VQEncoderOutput(BaseOutput):
29 """
30 Output of VQModel encoding method.
31
32 Args:
33 latents (`torch.Tensor` 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.Tensor
38
39
40class VQModel(ModelMixin, ConfigMixin):

Callers 1

encodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected