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)

猜你喜欢

转载自blog.csdn.net/qq_33373858/article/details/82770873