您的位置:首页 > 产品设计 > UI/UE

TypeError: Value passed to parameter 'targets' has DataType float32 not in list of allowed values: i

2017-08-18 23:46 537 查看
程序报错:



解决办法:

label_holder = tf.placeholder(tf.float32,[batch_size])



改为:

label_holder = tf.placeholder(tf.int32,[batch_size])
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐