您的位置:首页 > 移动开发 > Objective-C

【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'

2017-04-11 20:15 1376 查看
原因:TensorFlow 发布的新版本的 API 修改了

tf.mul, tf.sub and tf.neg are deprecated in favor of tf.multiply, tf.subtract and tf.negative.

解决方法:使用时将 tf.mul 改成 tf.multiply 即可
其余的 tf.sub 和 tf.neg 也要相应修改为 tf.subtract 和 tf.negative。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐