【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
2017-04-11 20:15
1376 查看
原因:TensorFlow 发布的新版本的 API 修改了
其余的 tf.sub 和 tf.neg 也要相应修改为 tf.subtract 和 tf.negative。
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。
相关文章推荐
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- TF版本问题:解决AttributeError: module 'tensorflow' has no attribute 'mul'—Jason niu
- 使用旧版本tensorflow出现了negative等报错的问题,AttributeError: 'module' object has no attribute 'xxx'"
- AttributeError: 'module' object has no attribute 'post'问题
- AttributeError: module 'tensorflow' has no attribute 'mul'
- 解决问题 AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
- Tensorflow:Attribute Error: 'module' object has no attribute 'mul'
- Tensorflow出现AttributeError: module 'tensorflow' has no attribute 'constant'问题怎么办?
- AttributeError: ‘module’ object has no attribute’xxx 问题解决
- AttributeError: ‘module’ object has no attribute’ 问题
- AttributeError: 'module' object has no attribute 'face' 问题解决 opencv+python
- AttributeError: 'module' object has no attribute 'showinfo'(已解决)
- Py3上的调试问题 AttributeError: module 'types' has no attribute 'ListType'求解
- AttributeError: 'module' object has no attribute 'urlopen'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: module 'tensorflow' has no attribute 'sub'
- python错误:AttributeError: 'module' object has no attribute 'setdefaultencoding'问题的解决方法
- tensorflow 报错 AttributeError: 'module' object has no attribute 'computation'