调用tf.placeholder()报错:AttributeError: module 'tensorflow' has no attribute 'placeholder'

- 日理万妓 2023-06-24 08:07 60阅读 0赞

在使用tensorflow并调用tf.placeholder()时报错:AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’

当前使用的是tensorflow-2.0.0-cp36-cp36m-win_amd64.whl,对应2.0版本的tensorflow,该版本中貌似已经取消了placeholder()的调用,解决方法参考:AttributeError: module ‘tensorflow’ has no attribute ‘placeholder’等问题的解决

发表评论

表情:
评论列表 (有 0 条评论,60人围观)

还没有评论,来说两句吧...

相关阅读