使用GPU和Tensorflow时出现问题:“设备上没有可执行的内核映像”

2024-10-03 04:27:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我得到了这个信息:

F .\tensorflow/core/kernels/random_op_gpu.h:232] Non‑OK‑status: GpuLaunchKernel(FillPhiloxRandomKernelLaunch, num_blocks, block_size, 0, d.stream(), gen, data, size, dist) status: Internal: no kernel image is available for execution on the device

在使用笔记本电脑的GPU启动YOLO检测算法时。(如果我禁用TensorFlow的GPU研究,一切正常,但运行缓慢)

我认为这是由于CUDA/cuDNN安装过程中的错误造成的,但我已经进行了检查,一切似乎都很好

有人能帮我弄清楚发生了什么事吗

我正在使用:

  • 视窗10

  • GPU:NVIDIA GeForce 940MX

  • CUDA 10.1

  • cuDNN 7.6

  • Python 3.7

  • Tensorflow 2.3.1

  • keras 2.4


Tags: core信息sizegputensorflowstatusokrandom