Last answered:

31 Aug 2021

Posted on:

27 Aug 2021

0

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)
Posted on:

31 Aug 2021

0

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()

Submit an answer