yenchenlin / DeepLearningFlappyBird

Flappy Bird hack using Deep Reinforcement Learning (Deep Q-learning).
MIT License
6.65k stars 2.04k forks source link

Failure in TensorFlow 1.0: module object has no attribute mul #28

Open marcoshaw opened 7 years ago

marcoshaw commented 7 years ago

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

soul192404 commented 7 years ago

i faced the same problem

saselovejulie commented 7 years ago

tf.mul was deprecated please use tf.multiply

littleheap commented 7 years ago

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

ExcaliburAir commented 6 years ago

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