tensorflow矩阵相乘报错module 'tensorflow' has no attribute 'mul'

  统计/机器学习 线性代数 TensorFlow    浏览次数:1596        分享
0


代码:product = tf.mul(X, w)
错误:module 'tensorflow' has no attribute 'mul'

以前没遇到过这个问题

 

thatdeep   2019-12-05 09:59



   1个回答 
2

应该是你换过tensorflow的版本了,新版本早就没有tf.mul了,换成tf.multiply了。

SofaSofa数据科学社区DS面试题库 DS面经

sasa   2019-12-05 15:48



  相关讨论

tf.truncated_normal和tf.random_normal有什么区别?

模仿tensorflow教程10-11的代码,报错,求解

pycharm+anaconda的安装问题

如何通过docker安装TensorFlow

tf.reduce_sum是什么函数

tf.placeholder和tf.variable什么区别?

python里怎么求一个矩阵的秩?

tf.add和直接使用加号+有什么区别吗?

标准化训练数据后,测试与线上部署的数据如何进行标准化?

tensorflow 训练的时候输出nan

  随便看看

随机平均梯度法(Stochasitc Average Gradient)和随机梯度下降(SGD)有什么区别

micro和macro F1 score分别是什么意思?

Resnet-18, Resnet-50, Resnet-101这些模型里的数字是什么意思?

print里的"%.2f"是什么意思?

除了PCA,还有什么降维的方法?