anonwi 2022-09-16 20:34 采纳率: 100%
浏览 344
已结题

运行tensorflow,通道无法调用

问题背景: 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。

  • 写回答

1条回答 默认 最新

  • FriendshipT 2022-09-17 00:33
    关注

    这个应该是在CPU上面运行的。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月1日
  • 已采纳回答 10月24日
  • 创建了问题 9月16日

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失