Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'UnboundVariable' object does not support indexing #14

Open
Patrickcxt opened this issue Mar 15, 2017 · 1 comment
Open

TypeError: 'UnboundVariable' object does not support indexing #14

Patrickcxt opened this issue Mar 15, 2017 · 1 comment

Comments

@Patrickcxt
Copy link

Patrickcxt commented Mar 15, 2017

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 !

@ikostrikov
Copy link
Owner

The implementation of DRAW is not maintained at the moment. I will fix it as soon as I have time (it might happen in several months).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants