I'd like to disable tensorflow messages such as:
2021-11-09 20:10:12.646426: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties: pciBusID: 0000:b3:00.0 name: NVIDIA RTX A6000 computeCapability: 8.6 coreClock: 1.8GHz coreCount: 84 deviceMemorySize: 47.54GiB deviceMemoryBandwidth: 715.34GiB/s 2021-11-09 20:10:12.652244: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1871] Adding visible gpu devices: 0 2021-11-09 20:10:12.652308: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix: 2021-11-09 20:10:12.652321: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264] 0 2021-11-09 20:10:12.652332: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1277] 0: N 2021-11-09 20:10:12.657207: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1418] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 42983 MB memory) -> physical GPU (device: 0, name: NVIDIA RTX A6000, pci bus id: 0000:b3:00.0, compute capability: 8.6)
that appears when I run some lines of code such as:
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.compat.v1.Session(config=config)
I tried this:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
But it doesn't work.