import tensorflow as tf import os config = tf.ConfigProto() AttributeError: module 'tensorflow' has no attribute 'ConfigProto'
I guess you're using tensorflow 2.x. In that case, use tf.compat.v1.ConfigProto() instead.