首页 > 编程语言 > 详细

Debug 路漫漫-14:Python: AttributeError: module 'tensorflow' has no attribute 'sub'

时间:2019-08-07 21:24:44      阅读:115      评论:0      收藏:0      [点我收藏+]

在调试 《Neural Factorization Machines for Sparse Predictive Analytics》论文的源码(https://github.com/hexiangnan/neural_factorization_machine )时,出现的问题:

技术分享图片

 

原因:

版本更新,sub 换成了 subtract 了。

 改过来之后,完美解决!:

技术分享图片

 

Debug 路漫漫-14:Python: AttributeError: module 'tensorflow' has no attribute 'sub'

原文:https://www.cnblogs.com/shenxiaolin/p/11317487.html

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