dcgan-mnist
dcgan-mnist copied to clipboard
Make the labels float
Running the code fails with
Traceback (most recent call last):
File "main.py", line 72, in
It seems binary_cross_entropy (on pytorch 1.7.0 expects FloatTensor not LongTensor. Make the real_label and fake_label float solves the problem.