maya
0
Q:

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

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
0
#replace import tensorflow as tf by following
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
1

New to Communities?

Join the community