Closed andyyuan78 closed 8 years ago
Hi! This error was caused by the latest version of TensorFlow.
You can fix it by editing your local installation of PrettyTensor.
Just replace vs_key[0] = variable_scope._VariableScope( with vs_key[0] = variable_scope.VariableScope( in File "/home/envy/.local/lib/python2.7/site-packages/prettytensor/scopes.py", line 57
The bug has been fixed. Please install the latest version of PrettyTensor.
envy@ub1404:~/os_pri/github/TensorFlow-VAE-GAN-DRAW$ python main-vae.py --working_directory . Extracting ./MNIST/train-images-idx3-ubyte.gz Extracting ./MNIST/train-labels-idx1-ubyte.gz Extracting ./MNIST/t10k-images-idx3-ubyte.gz Extracting ./MNIST/t10k-labels-idx1-ubyte.gz Traceback (most recent call last): File "main-vae.py", line 120, in
output_tensor, mean, stddev = decoder(encoder(input_tensor))
File "main-vae.py", line 41, in encoder
reshape([FLAGS.batch_size, 28, 28, 1]).
File "/home/envy/.local/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1816, in method
with _method_scope(input_layer, scopename) as (scope, ):
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/envy/.local/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 1628, in _method_scope
scopes.var_and_name_scope((name, None)) as (scope, var_scope):
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/home/envy/.local/lib/python2.7/site-packages/prettytensor/scopes.py", line 57, in var_and_name_scope
vs_key[0] = variable_scope._VariableScope(
AttributeError: 'module' object has no attribute '_VariableScope'
envy@ub1404:~/os_pri/github/TensorFlow-VAE-GAN-DRAW$