Working with VAEs in pytorch.