```py
2 ** (len(vae.config.block_out_channels) - 1) == 8
```  
</Tip>  
```py
>>> latents = torch.randn(
...     (batch_size, unet.config.in_channels, height // 8, width // 8),
...     generator=generator,
...     device=torch_device,
... )
```