Tensorflow-SegNet icon indicating copy to clipboard operation
Tensorflow-SegNet copied to clipboard

AttributeError: module 'tensorflow' has no attribute 'placeholder'

Open ardee123 opened this issue 5 years ago • 0 comments

I have python 3.7.1 and tensorflow 2.0.0 I tried running your code but i get this error AttributeError: module 'tensorflow' has no attribute 'placeholder'

I tried adding

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior() 

But it doesnt work either. Do you have any other suggestions? Or maybe on which versions of python and tensorflow this code works?

ardee123 avatar Apr 18 '20 14:04 ardee123