yoavz / music_rnn

Music Language Modeling with Recurrent Neural Networks
http://yoavz.com/music_rnn
197 stars 38 forks source link

error in tensorflow 1.0 #6

Open xslittlegrass opened 7 years ago

xslittlegrass commented 7 years ago

I encountered an error when using tensorflow 1.0:

Traceback (most recent call last):
  File "rnn.py", line 142, in <module>
    data["train"]["data"], training=True, testing=False)
  File "/Users/xslittlegrass/Downloads/music_rnn/util.py", line 190, in run_epoch
    state = model.get_cell_zero_state(session, batch_size) 
  File "/Users/xslittlegrass/Downloads/music_rnn/model.py", line 101, in get_cell_zero_state
    return self.cell.zero_state(batch_size, tf.float32).eval(session=session)
AttributeError: 'tuple' object has no attribute 'eval'

Does anyone have any suggestions? Thanks.

Eumi commented 7 years ago

check out https://github.com/llSourcell/AI_Composer