您的位置:首页 > 其它

Tensorflow出现AttributeError: module 'tensorflow' has no attribute 'constant'问题怎么办?

2018-04-02 17:34 2983 查看
如果你的Tensorflow程序很简单,比如这样:



那么出现AttributeError: module 'tensorflow' has no attribute 'constant'的原因是:
该文件命名错误,不要用tensorflow.py这个名字,换个别的就好了




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐