Answers for "module 'tensorflow' has no attribute 'placeholder' for tensorflow 2.2.0"

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

Code answers related to "module 'tensorflow' has no attribute 'placeholder' for tensorflow 2.2.0"

Python Answers by Framework

Browse Popular Code Answers by Language