A collection of generative methods implemented with TensorFlow (Deep Convolutional Generative Adversarial Networks (DCGAN), Variational Autoencoder (VAE) and DRAW: A Recurrent Neural Network For Image Generation).
Apache License 2.0
595
stars
167
forks
source link
TypeError: 'UnboundVariable' object does not support indexing #14
Hi, when I run the command 'python main-draw.py --working_directory /tmp/gan', I got the following error:
Traceback (most recent call last):
File "main-draw.py", line 190, in
gru_cell(num_units=FLAGS.rnn_size, state=pt.UnboundVariable('state')))
File "/home/amax/anaconda2/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 2011, in method
return func(input_layer, *args, **self.fill_kwargs(input_layer, kwargs))
File "/home/amax/anaconda2/lib/python2.7/site-packages/prettytensor/recurrent_networks.py", line 286, in gru_cell
state = state[0]
TypeError: 'UnboundVariable' object does not support indexing
The version of my tensorflow is 1.0
I use "pip install prettytensor" to install prettytensor 0.7.4
when I tried the example from the tutorial : https://github.com/google/prettytensor, it failed too
A = (pretty_tensor.template('x')
.lstm_cell(num_units=256, state=UnboundVariable('state'))
Hi, when I run the command 'python main-draw.py --working_directory /tmp/gan', I got the following error:
Traceback (most recent call last): File "main-draw.py", line 190, in
gru_cell(num_units=FLAGS.rnn_size, state=pt.UnboundVariable('state')))
File "/home/amax/anaconda2/lib/python2.7/site-packages/prettytensor/pretty_tensor_class.py", line 2011, in method
return func(input_layer, *args, **self.fill_kwargs(input_layer, kwargs))
File "/home/amax/anaconda2/lib/python2.7/site-packages/prettytensor/recurrent_networks.py", line 286, in gru_cell
state = state[0]
TypeError: 'UnboundVariable' object does not support indexing
The version of my tensorflow is 1.0
I use "pip install prettytensor" to install prettytensor 0.7.4
when I tried the example from the tutorial : https://github.com/google/prettytensor, it failed too
A = (pretty_tensor.template('x')
.lstm_cell(num_units=256, state=UnboundVariable('state'))
Thanks !