We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b67434 + d40cc81 commit 6f255deCopy full SHA for 6f255de
tutorials/03-advanced/variational_auto_encoder/main.py
@@ -65,7 +65,7 @@ def sample(self, z):
65
# fixed inputs for debugging
66
fixed_z = to_var(torch.randn(100, 20))
67
fixed_x, _ = next(data_iter)
68
-torchvision.utils.save_image(fixed_x.data.cpu(), './data/real_images.png')
+torchvision.utils.save_image(fixed_x.cpu(), './data/real_images.png')
69
fixed_x = to_var(fixed_x.view(fixed_x.size(0), -1))
70
71
for epoch in range(50):
@@ -95,4 +95,4 @@ def sample(self, z):
95
reconst_images, _, _ = vae(fixed_x)
96
reconst_images = reconst_images.view(reconst_images.size(0), 1, 28, 28)
97
torchvision.utils.save_image(reconst_images.data.cpu(),
98
- './data/reconst_images_%d.png' %(epoch+1))
+ './data/reconst_images_%d.png' %(epoch+1))
0 commit comments