问题一:TypeError: Expected int32, got list containing Tensors of type ‘_Message’ instead.
tensorflow 函数tf.cocat([fw,bw],2)出错:
Expected int32, got list containing Tensors of type ‘_Message’ inst
查看原因是11版本的函数形式为:tf.concat(2,[fw,bw]),即应把串联的维度与串联值位置调换即可.
问题二:Input ‘split_dim’ of ‘Split’ Op has type float32 that does not match expected type of int32
This is because in Tensorflow versions < 0.12.0 the split function takes the arguments as:
x = tf.split(0, n_steps, x) # tf.split(axis, num_or_size_splits, value)
The tutorial you are working from was written for versions > 0.12.0, which has been changed to be consistent with Numpy’s split syntax:
x = tf.split(x, n_steps, 0) # tf.split(value, num_or_size_splits, axis)