yunjey / show-attend-and-tell

TensorFlow Implementation of "Show, Attend and Tell"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

train.py TypeError

alexanderhanboli opened this issue · comments

TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

It traced back to the line:

line 168, in build_model _, (c, h) = lstm_cell(inputs=tf.concat(1, [x[:,t,:], context]), state=[c, h])

@AlexanderYogurt did you resolve this? I have run into the same issue. And cannot figure out a solution.

You should change that line to:
(c, h) = lstm_cell(inputs=tf.concat([x[:,t,:], context], 1), state=[c, h])
or
(c, h) = lstm_cell(inputs=tf.concat(axis=1, [x[:,t,:], context]), state=[c, h])

commented

Post full error report