Open lileiNPU opened 6 years ago
Use next(gen)
instead of gen.next()
.
This problem seems to be caused by the difference between python 2 and python 3, so I use gen.__next__()
instead. Then it works fine.
Guess you could as well solve that by applying 'gen[0]' instead of deprecated 'gen.next()'. Works for python3. Not sure abt version 2.
File "C:/Users/Daxika/Desktop/improved_wgan_training-master/improved_wgan_training-master/gan_toy.py", line 239, in
_data = gen.next()
AttributeError: 'generator' object has no attribute 'next'
I need help