openai / improved-gan

Code for the paper "Improved Techniques for Training GANs"
https://arxiv.org/abs/1606.03498
2.28k stars 622 forks source link

AttributeError: 'module' object has no attribute 'absolute_import' #41

Open matt-bluet opened 5 years ago

matt-bluet commented 5 years ago

I am trying to run the train_mnist_feature_matching.py code with python 3.5 but getting the error as below: File "[path]/lib/python3.5/site-packages/nn/tf.py", line 1, in from tensorflow import * AttributeError: 'module' object has no attribute 'absolute_import'

Is this a bug?

matt-bluet commented 5 years ago

from tensorflow import *

from tensorflow.python import *

Fixes the issue!