thank you very much my tensorflow is working but i m getting another error.
AttributeError                            Traceback (most recent call last)
 in 
2 tf.compat.v1.ConfigProto
3 tf.executing_eagerly()
----> 4 he_init = tf.contrib.layers.variance_scaling_initializer()
5 hidden1 = tf.layers.dense(X,n_hidden1,activation=tf.nn.relu,kernel_initializer=he_init,name=“hidden1”)
AttributeError: module ‘tensorflow.compat.v1’ has no attribute ‘contrib’