Unverified Commit f085d2f5 authored by Partho's avatar Partho Committed by GitHub
Browse files

[Type Hint] VAE models (#365)



* [Type Hint] VAE models

* Update src/diffusers/models/vae.py

* apply suggestions from code review
Co-authored-by: default avatarAnton Lozhkov <aglozhkov@gmail.com>
parent be52be72
......@@ -411,7 +411,7 @@ class VQModel(ModelMixin, ConfigMixin):
act_fn=act_fn,
)
def encode(self, x, return_dict: bool = True):
def encode(self, x: torch.FloatTensor, return_dict: bool = True) -> VQEncoderOutput:
h = self.encoder(x)
h = self.quant_conv(h)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment