Skip to content

Commit c37a5ed

Browse files
dasparthoanton-l
authored andcommitted
[Type Hint] VAE models (#365)
* [Type Hint] VAE models * Update src/diffusers/models/vae.py * apply suggestions from code review Co-authored-by: Anton Lozhkov <aglozhkov@gmail.com>
1 parent 5eff912 commit c37a5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/vae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def __init__(
411411
act_fn=act_fn,
412412
)
413413

414-
def encode(self, x, return_dict: bool = True):
414+
def encode(self, x: torch.FloatTensor, return_dict: bool = True) -> VQEncoderOutput:
415415
h = self.encoder(x)
416416
h = self.quant_conv(h)
417417

0 commit comments

Comments
 (0)