jazzsaxmafia / show_attend_and_tell.tensorflow

BSD 2-Clause "Simplified" License
506 stars 191 forks source link

About state = tf.zeros([self.batch_size, self.lstm.state_size]) #18

Open ecilay opened 7 years ago

ecilay commented 7 years ago

In model.py, both in function build_model(self) and build_generator(self, maxlen), there is a line state = tf.zeros([self.batch_size, self.lstm.state_size]). However, this line cannot run (I am running on tf 0.12). Since self.lstm.state_size is a tuple, while here i believe it just needs an int.