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

运行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 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥30 用arduino开发esp32控制ps2手柄一直报错
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 求chat4.0解答一道线性规划题,用lingo编程运行,第一问要求写出数学模型和lingo语言编程模型,第二问第三问解答就行,我的ddl要到了谁来求了
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题