加入
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
demo:
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf tf.enable_eager_execution() print(tf.add(1, 2).numpy()) hello = tf.constant('Hello, TensorFlow!') print(hello.numpy())