Answers for "AttributeError: module 'tensorflow' has no attribute 'placeholder' site:stackoverflow.com"

3

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

#replace import tensorflow as tf by following
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Posted by: Guest on June-01-2020
1

AttributeError: module 'tensorflow' has no attribute 'placeholder' site:stackoverflow.com

import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Posted by: Guest on March-12-2020

Code answers related to "AttributeError: module 'tensorflow' has no attribute 'placeholder' site:stackoverflow.com"

Browse Popular Code Answers by Language