File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tutorials/03-advanced/variational_auto_encoder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def sample(self, z):
6565# fixed inputs for debugging
6666fixed_z = to_var (torch .randn (100 , 20 ))
6767fixed_x , _ = next (data_iter )
68- torchvision .utils .save_image (fixed_x .data . cpu (), './data/real_images.png' )
68+ torchvision .utils .save_image (fixed_x .cpu (), './data/real_images.png' )
6969fixed_x = to_var (fixed_x .view (fixed_x .size (0 ), - 1 ))
7070
7171for epoch in range (50 ):
@@ -95,4 +95,4 @@ def sample(self, z):
9595 reconst_images , _ , _ = vae (fixed_x )
9696 reconst_images = reconst_images .view (reconst_images .size (0 ), 1 , 28 , 28 )
9797 torchvision .utils .save_image (reconst_images .data .cpu (),
98- './data/reconst_images_%d.png' % (epoch + 1 ))
98+ './data/reconst_images_%d.png' % (epoch + 1 ))
You can’t perform that action at this time.
0 commit comments