File "C:\Users\User\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 517, in placeholder
x = tf.placeholder(dtype, shape=shape, name=none)
AttributeError: module 'tensorflow' has no attribute 'placeholder'
How can I get rid of this kind of error?
I am having the same problem. Did you solve your issue?
I had the same problem. I solved it by re-installing Keras.
pip uninstall keras
conda install keras
The issue for me was that Tensorflow 2.x does not use tf.placeholders (and tf.session()) anymore.
This guide from Tensorflow explains the changes from Tensorflow 1.x to Tensorflow 2.x and how to convert old code: https://www.tensorflow.org/guide/migrate
Most helpful comment
I had the same problem. I solved it by re-installing Keras.
pip uninstall keras
conda install keras