martinarjovsky / WassersteinGAN

BSD 3-Clause "New" or "Revised" License
3.21k stars 725 forks source link

resize problem #20

Closed yichuan9527 closed 7 years ago

yichuan9527 commented 7 years ago

Hello! I run your WGAN's code. I get this bug input.resizeas(realcpu).copy(real_cpu) TypeError: resizeas received an invalid combination of arguments - got (!torch.FloatTensor!), but expected (torch.cuda.FloatTensor template) How to solve it?

HaraldKorneliussen commented 7 years ago

This looks a lot like the issue which was just addressed by https://github.com/martinarjovsky/WassersteinGAN/pull/19 .

soumith commented 7 years ago

fixed via https://github.com/martinarjovsky/WassersteinGAN/pull/19

yichuan9527 commented 7 years ago

I solve this problem! Thank very much! It bother me a lot of time! Thanks again