python2.7 报错 Input 'split_dim' of 'Split' Op has type float32 that does not match expected type of

原因分析:Tensorflow更新后,tf.split参数位置做调整。

tf.split(0, n_steps, x) 

更新为:

tf.split(x, n_steps, 0) 


位置做调整即可。

tf.image_summary 更改为:tf.summary.scalar

tf.image_summary 更改为  tf.summary.scalar
tf.merge_all_summaries   更改为:  tf.summary.merge_all()
tf.train.SummaryWriter 改为:tf.summary.FileWriter


猜你喜欢

转载自blog.csdn.net/dingyiye2649/article/details/80408958