state = cell.zero_state(batchsize, tf.float32).eval()
I am trying to follow this https://github.com/kvfrans/twitch/blob/master/sample.py#L45 example to decode and run a trained tensorflow model, but it seems like the tensorflow code used was an older version. I have managed to fix most calls to v 1.0.0, but I am stuck where the code line above gives me the following error:
Traceback (most recent call last):
File "server.py", line 1, in <module>
from sample import *
File "/home/user/twitch/sample.py", line 75, in <module>
print predict("this game is")
File "/home/user/twitch/sample.py", line 46, in predict
state = initialstate.eval()
AttributeError: 'tuple' object has no attribute 'eval'
Any ideas on how I should fix the .eval() and state? It is used later in:
guessed_logits, state = sess.run([logits, final_state], feed_dict={input_data: primer, initialstate: state})