After searching hours together i found answer from Stackoverflow itself, where the answer is provided for different issue. And that solution worked here as well.
Here is the solution:
tf.logging.set_verbosity(tf.logging.ERROR)
This works in tensorflow 2.X. Here is a solution that will work in tensorflow 1.X:
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
Source:
Is there a way to suppress the messages TensorFlow prints?