8000 [Type Hint] VAE models (#365) · yoonseokjin/diffusers@38fff9e · GitHub
[go: up one dir, main page]

Skip to content

Commit 38fff9e

Browse files
dasparthoanton-l
andauthored
[Type Hint] VAE models (huggingface#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 4e9d465 commit 38fff9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0