问题背景: pycharm运行tensorflow的测试代码时出现了这个问题,没有看懂是什么问题。恳请指导一下
代码
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))
运行结果及报错内容
2022-09-16 20:25:34.059375: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-09-16 20:25:34.060588: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
2022-09-16 20:25:34.061580: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled
b'hello,tensorflow'
Process finished with exit code 0
前面两个问题我查到说是要么只能加代码忽略,要么从源代码安装,这个源代码安装没理解是什么意思。主要是第三个为什么说是这个优化通道不能调用呢?
想把那个通道调用了,不知道是不是已经是GPU运行的tensorflow。