AttributeError: module 'tensorflow' has no attribute 'placeholder'
AttributeError: module 'tensorflow' has no attribute 'placeholder'
thats what i get i tried updating installing the placeholder its always the same
1 answers ( 0 marked as helpful)
In new TF-version there is no attribute 'placeholder' in tensorflow, you can write 'Variable' instead.
If you want to use previous version, write this:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()