【问题标题】:What is this error and how do I fix it? Process finished with exit code -1073740791 (0xC0000409)这是什么错误,我该如何解决?进程以退出代码 -1073740791 (0xC0000409) 结束
【发布时间】:2022-01-24 02:51:10
【问题描述】:

我正在尝试运行一个 tensorflow 脚本,每次运行时都会出现此错误,而 Google 并没有帮助我找出原因。

进程以退出代码 -1073740791 (0xC0000409) 结束

感谢您的帮助。

这是一个更广泛的错误消息。

2021-12-22 20:04:43.518831: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-12-22 20:04:44.339137: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 5490 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 3070 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6
2021-12-22 20:04:49.923774: I tensorflow/stream_executor/cuda/cuda_dnn.cc:368] Loaded cuDNN version 8301

Process finished with exit code -1073740791 (0xC0000409)

【问题讨论】:

  • 0xC0000409STATUS_STACK_BUFFER_OVERFLOW。这是 Python 中的一个难点。您所能做的就是对所有阵列形状进行三次检查,并确保您没有要求提供您未提供的矩阵大小。这是一个内核错误代码。你在使用 GPU 吗?确定您的 Nvidia 驱动程序是最新的?
  • 你自己编译过tensorflow吗?
  • 我的 Nvidia 驱动程序是最新的。如果是数组形状问题,您知道我该如何解决代码的哪一部分具有大小或不是导致错误的部分吗?
  • 通过 pip 标准安装。
  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: python tensorflow


【解决方案1】:

我解决了。这是某些版本的 CUDA 和 CUDAnn 之间的不兼容所特有的错误,在我的情况下,我必须不断切换 CUDNN 文件,直到找到一个可以工作的文件 (8.2)

【讨论】:

    猜你喜欢
    • 2019-02-02
    • 2022-09-25
    • 2017-11-20
    • 2018-11-06
    • 1970-01-01
    • 2018-09-01
    • 1970-01-01
    • 2019-07-02
    • 1970-01-01
    相关资源
    最近更新 更多