DeepLearningFlappyBird icon indicating copy to clipboard operation
DeepLearningFlappyBird copied to clipboard

Failure in TensorFlow 1.0: module object has no attribute mul

Open marcoshaw opened this issue 8 years ago • 4 comments

Update deep_q_network.py: ... readout_action = tf.reduce_sum(tf.mul(readout, a), reduction_indices=1) ...

To: readout_action = tf.reduce_sum(tf.multiply(readout, a), reduction_indices=1)

TF 1.0 change: http://stackoverflow.com/questions/42217059/tensorflowattributeerror-module-object-has-no-attribute-mul

marcoshaw avatar Feb 16 '17 13:02 marcoshaw

i faced the same problem

soul192404 avatar Feb 20 '17 14:02 soul192404

tf.mul was deprecated please use tf.multiply

saselovejulie avatar Sep 07 '17 01:09 saselovejulie

please transform the “mul” into “multiply” because there are slight differences between different versions

littleheap avatar Sep 29 '17 13:09 littleheap

i agree ,and maybe you want see this https://www.tensorflow.org/install/migration

ExcaliburAir avatar Dec 17 '17 08:12 ExcaliburAir