pytorch-GAN
pytorch-GAN copied to clipboard
the 'xrange' is error
the 'xrange' is in 'for epoch in xrange(opt.max_epoch):' is wrong.
This code appears to be written with Python 2 and it seems like you're trying to run it with Python 3. xrange was renamed to range in Python 3 so that should fix your problem
thank you.------------------ Original ------------------ From: "BisratM"[email protected] Date: Sat, Dec 28, 2019 06:39 AM To: "chenyuntc/pytorch-GAN"[email protected]; Cc: "biaozhou"[email protected];"Author"[email protected]; Subject: Re: [chenyuntc/pytorch-GAN] the 'xrange' is error (#2)
This code appears to be written with Python 2 and it seems like you're trying to run it with Python 3. xrange was renamed to range in Python 3 so that should fix your problem
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.