pytorch-GAN icon indicating copy to clipboard operation
pytorch-GAN copied to clipboard

the 'xrange' is error

Open Dr-Zhou opened this issue 6 years ago • 2 comments

the 'xrange' is in 'for epoch in xrange(opt.max_epoch):' is wrong.

Dr-Zhou avatar Dec 10 '18 13:12 Dr-Zhou

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

BisratM avatar Dec 27 '19 22:12 BisratM

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.

Dr-Zhou avatar Dec 28 '19 01:12 Dr-Zhou