首页 > 编程语言 > 详细

吴裕雄--天生自然 pythonTensorFlow图形数据处理:解决module 'tensorflow' has no attribute 'parse_single_example'

时间:2019-12-18 21:36:59      阅读:180      评论:0      收藏:0      [点我收藏+]
源码:# 解析读取的样例。
features = tf.parse_single_example(dataset,features={image_raw:tf.FixedLenFeature([],tf.string),pixels:tf.FixedLenFeature([],tf.int64),label:tf.FixedLenFeature([],tf.int64)})

技术分享图片

修改后:
# 解析读取的样例。
features = tf.io.parse_single_example(dataset,features={image_raw:tf.FixedLenFeature([],tf.string),pixels:tf.FixedLenFeature([],tf.int64),label:tf.FixedLenFeature([],tf.int64)})

这样就可以了解决这个问题了。

吴裕雄--天生自然 pythonTensorFlow图形数据处理:解决module 'tensorflow' has no attribute 'parse_single_example'

原文:https://www.cnblogs.com/tszr/p/12063383.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!