show-attend-and-tell icon indicating copy to clipboard operation
show-attend-and-tell copied to clipboard

train.py TypeError

Open alexanderhanboli opened this issue 7 years ago • 3 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])

alexanderhanboli avatar Oct 07 '17 00:10 alexanderhanboli

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

alexandercameronh avatar Nov 01 '17 23:11 alexandercameronh

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])

lopezlaura avatar Dec 06 '17 15:12 lopezlaura

Post full error report

EMCL avatar Jan 18 '18 08:01 EMCL