I am following this document to implement DC GAN DCGAN Tutorial — PyTorch Tutorials 1.9.0+cu102 documentation
However, I am not using num_workers = 2. I am only using Default workers and device is cuda:0.
on training the generator and discriminators I am getting this error:

image1183×268 41.2 KB

Here is the code line:

image765×166 14.5 KB

This last line is resulted in throwing this exception.
Please help me in solving this exception. Thank you in advance.