升级到tensorflow v1.0后,使用tensorflow.mul()的代码失败

xxb*_*iao 3 python tensorflow

此代码在Tensorflow v0.12.1上运行,但在TF v1.0上的新安装上失败.是不是这个功能被弃用了?我应该使用什么功能?(Tensorflow启动并运行所以我认为这不是一个错误的配置)

  File "***.py", line 115, in trainNetwork
    readout_action = tf.reduce_sum(tf.mul(readout, a), reduction_indices = 1)
AttributeError: module 'tensorflow' has no attribute 'mul'
Run Code Online (Sandbox Code Playgroud)

mrr*_*rry 14

tf.mul()函数已tf.multiply()在TensorFlow 1.0中重命名为.