国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Process finished with exit code -1073740791 (0xC0000409)報錯解決方案

這篇具有很好參考價值的文章主要介紹了Process finished with exit code -1073740791 (0xC0000409)報錯解決方案。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一、問題描述

使用Pycharm在跑一個深度學(xué)習(xí)網(wǎng)絡(luò)時,出現(xiàn)以下報錯:

Process finished with exit code -1073740791 (0xC0000409)

二、問題分析

出現(xiàn)以上報錯,一般顯卡顯存不足導(dǎo)致的。所以可以通過以下幾步來逐一排查:

  1. 判斷自己的環(huán)境是否配置好,特別是cuda、cudnn
  2. 判斷顯卡驅(qū)動是否安裝好或者需要更新
  3. 如果是windows下,可以打開任務(wù)管理器,查看GPU顯存。

如下圖所示,可以發(fā)現(xiàn)我的電腦有兩個GPU,其中 GPU 0 是集成顯卡, GPU 1 是獨立顯卡。一般而言,我們都采用性能更加強悍的獨立顯卡來訓(xùn)練網(wǎng)絡(luò)。所以在主程序中,第一次訓(xùn)練時,最好要指定顯卡;如果不指定的話,可能系統(tǒng)默認(rèn)使用GPU 0,因此導(dǎo)致顯存不足。
Process finished with exit code -1073740791 (0xC0000409)報錯解決方案,環(huán)境配置與搭建,人工智能,深度學(xué)習(xí),tensorflow

三、解決方案

指定使用 GPU 1 進行訓(xùn)練, 通需要在主程序前加入添加以下代碼:

import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "1"

當(dāng)然,如果你有多張顯卡,你也可以一起進行指定:文章來源地址http://www.zghlxwxcb.cn/news/detail-641802.html

import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0,2,3"  #指定第2,3,4張顯卡處理

到了這里,關(guān)于Process finished with exit code -1073740791 (0xC0000409)報錯解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 解決【spring boot】Process finished with exit code 0的問題

    解決【spring boot】Process finished with exit code 0的問題

    今天從https://start.spring.io下載配置好的 spring boot 項目: 啟動后卻報出如下錯誤: 即 Process finished with exit code 0 Process finished with exit code 0 翻譯成中文 進程已完成,退出代碼為 0 。 我們再次細(xì)看上圖中的日志信息: 我們注意看這句話: Started DemoApplication in 0.875 seconds (JVM runni

    2024年02月06日
    瀏覽(37)
  • SpringBoot 項目啟動后直接退出:Process finished with exit code 0

    在創(chuàng)建springcloud項目后,新建一個springboot服務(wù)的時候,啟動項目沒有任何報錯。但是,項目一啟動后就退出了:Process finished with exit code 0,(程序執(zhí)行完成)沒有監(jiān)聽端口就退出了。 exit code 0 表示程序執(zhí)行成功,正常退出 exit code 1 表示程序執(zhí)行執(zhí)行過程中遇到了某些問題或者錯

    2024年02月14日
    瀏覽(29)
  • Spring Boot應(yīng)用啟動報錯:Process finished with exit code 1

    Spring Boot應(yīng)用啟動報錯:Process finished with exit code 1

    今天打算將原來一個非Spring Boot項目改造為Spring Boot項目,改造完成后啟動項目,但是控制臺報了如下錯誤: 但是僅憑這一點信息,是無法定位到問題原因的。 不過在繼續(xù)尋找答案之前,有必要介紹下本地的相關(guān)環(huán)境: jdk版本:1.8.0_91 spring boot版本:2.1.2.RELEASE maven版本: 3

    2024年02月03日
    瀏覽(21)
  • 【PyQT5】安裝之后,PyUIC沒有成功轉(zhuǎn)換ui文件轉(zhuǎn)為py且出現(xiàn)錯誤:`Process finished with exit code 1`的解決方法

    【PyQT5】安裝之后,PyUIC沒有成功轉(zhuǎn)換ui文件轉(zhuǎn)為py且出現(xiàn)錯誤:`Process finished with exit code 1`的解決方法

    關(guān)于PyQT5的安裝,可參考我前一篇博客里面【PyQT5】結(jié)合PyQt5-tools中的QT Designer進行界面設(shè)計,使用pyinstaller轉(zhuǎn)換成可執(zhí)行程序的重點參考博客PyCharm安裝PyQt5及其工具(Qt Designer、PyUIC、PyRcc)詳細(xì)教程 之前跟著這篇重點參考的博客配置下來是沒有任何問題的,也能夠成功調(diào)用

    2024年01月19日
    瀏覽(67)
  • Pycharm jupyter server process exited with code 1

    使用 Pycharm 啟動 Jupyter 時,報錯如下, Pycharm 啟動 jupyter 時,默認(rèn)的 arguments 是 notebook --no-browser ,因為我只安裝了 jupyterlab,并沒有安裝 juypter notebook,所以報錯。 解決方法,將 notebook --no-browser ,修改為, 就解決了。 完結(jié)!

    2024年04月16日
    瀏覽(18)
  • Job for nginx.service failed because the control process exited with error code.

    1. nginx啟動報錯: 這個錯誤是nginx.conf配置文件里面配置錯誤,可以使用命令檢查在哪里出錯 出錯的地方: 進行改正,并再次檢查。輸出以下信息表示ok。 啟動nginx: 建議每次更改配置文件都先執(zhí)行命令檢查一下配置文件是否配置成功。 2.nginx相關(guān)命令 查看nginx啟動狀態(tài) 重啟加

    2024年02月15日
    瀏覽(29)
  • Job for DmServiceDMSERVER.service failed because the control process exited with error code.

    Job for DmServiceDMSERVER.service failed because the control process exited with error code.

    Job for DmServiceDMSERVER.service failed because the control process exited with error code. See \\\"systemctl status DmServiceDMSERVER.service\\\" and \\\"journalctl -xe\\\" for details. 這個報錯是發(fā)生測試數(shù)據(jù)庫備份恢復(fù)功能時。系統(tǒng)環(huán)境 麒麟linuxV10 + 達夢V8。 備份全庫,停止? system stop DmServiceDMSERVER console 界面選擇剛做的全

    2024年02月13日
    瀏覽(91)
  • Job for mysqld.service failed because the control process exited with error code.

    Job for mysqld.service failed because the control process exited with error code.

    通過百度翻譯如下: mysqld.service 的作業(yè)失敗,因為控制進程退出并顯示錯誤代碼。有關(guān)詳細(xì)信息,請參閱 “systemctl status mysqld.service” 和 “journalctl -xe”。 得到的結(jié)論時與進程相關(guān) 先查詢一下mysql的進程 直接簡單粗暴的吧紅框的兩個進程殺掉 每個人的進程號都不一樣,注意

    2024年01月17日
    瀏覽(99)
  • Job for network.service failed because the control process exited with error code.

    Linux Centos7 修改為靜態(tài)iP后重啟網(wǎng)絡(luò)服務(wù)遇到的問題 重啟網(wǎng)絡(luò):service network restart ? ? ? ? ? ? ? ? ? /etc/init.d/network restart 報錯問題描述:Job for network.service failed because the control process exited with error code. See \\\"systemctl status network.service\\\" and \\\"journalctl -xe\\\" for details. ? 查看 cat /etc/sy

    2024年02月08日
    瀏覽(89)
  • 關(guān)于Job for network.service failed because the control process exited with error code.

    關(guān)于Job for network.service failed because the control process exited with error code.

    重啟網(wǎng)絡(luò)出現(xiàn)報錯 Job for network.service failed because the control process exited with error code. See \\\"systemctl status network.service\\\" and \\\"journalctl -xe\\\" for details. 1.執(zhí)行systemctl restart network.service命令后出現(xiàn)下面的錯誤 2.按照報錯提示輸入了systemctl status network.service 3.解決方法 3.1網(wǎng)絡(luò)配置工具network和

    2024年02月11日
    瀏覽(91)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包