show_attend_and_tell.tensorflow
show_attend_and_tell.tensorflow copied to clipboard
About state = tf.zeros([self.batch_size, self.lstm.state_size])
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.