I need to find which version of TensorFlow I have installed. I\'m using Ubuntu 16.04 Long Term Support.
If you have TensorFlow 2.x:
sess = tf.compat.v1.Session(config=tf.compat.v1.ConfigProto(log_device_placement=True))