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

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

 

原因:

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

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

 

posted on 2019-08-07 20:07  CuriousZero  阅读(1474)  评论(0编辑  收藏  举报

导航