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

Pytorch unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019

這篇具有很好參考價(jià)值的文章主要介紹了Pytorch unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

Windows 下 Pytorch需要編譯cpp文件,出現(xiàn)如下錯(cuò)誤:

fatal error C1189: #error: ?-- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check

我安裝的VS2022,那么需要重新安裝VS2019么?

其實(shí)不需要,正如上面提示,編譯時(shí)加個(gè)參數(shù)即可。

?舊代碼:

upfirdn2d_op = load(
    "upfirdn2d",
    sources=[
        os.path.join(module_path, "upfirdn2d.cpp"),
        os.path.join(module_path, "upfirdn2d_kernel.cu"),
    ],
)

加一行,新代碼:?

upfirdn2d_op = load(
    "upfirdn2d",
    sources=[
        os.path.join(module_path, "upfirdn2d.cpp"),
        os.path.join(module_path, "upfirdn2d_kernel.cu"),
    ],
    extra_cuda_cflags=['-allow-unsupported-compiler'],
)

也就是加上一行:? ?extra_cuda_cflags=['-allow-unsupported-compiler'],?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-511402.html

到了這里,關(guān)于Pytorch unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • this version of the Java Runtime only recognizes class file versions up to 52.0

    this version of the Java Runtime only recognizes class file versions up to 52.0

    博客上很多博主說(shuō)這個(gè)是jdk版本的問(wèn)題,我所有地方都設(shè)置的是jdk1.8,但還是報(bào)錯(cuò) Caused by: java.lang.UnsupportedClassVersionError: org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only re

    2024年02月11日
    瀏覽(28)
  • 徹底解決this version of the Java Runtime only recognizes class file versions up to 52.0

    徹底解決this version of the Java Runtime only recognizes class file versions up to 52.0

    這個(gè)錯(cuò)誤的意思是當(dāng)時(shí)開(kāi)發(fā)程序的人使用的JDK的版本要比你現(xiàn)在運(yùn)行的環(huán)境上的JDK版本高。比如他是使用JDK11開(kāi)發(fā)的,然后把程序打包好,你下載了他的jar包到本地運(yùn)行,然后報(bào)錯(cuò),可能你本地的JDK版本是低于11的,所以報(bào)錯(cuò)。 安裝JDK21就行。繼續(xù)看文章下面的對(duì)應(yīng)關(guān)系,就知

    2024年02月02日
    瀏覽(24)
  • 【已解決】this version of the Java Runtime only recognizes class file versions up to 52.0

    【已解決】this version of the Java Runtime only recognizes class file versions up to 52.0

    在把springboot項(xiàng)目打包了jar之后,準(zhǔn)備本地運(yùn)行一下 然后報(bào)錯(cuò): 編譯版本和運(yùn)行版本不一致,可能是編譯版本高于運(yùn)行版本導(dǎo)致的 修改pom.xml, 將此版本改為 java -version 版本 為 spring-boot-maven-plugin 增加 parent的版本號(hào) 如果沒(méi)指定spring-boot-maven-plugin 的版本,就會(huì)拿取最新的版本打

    2023年04月16日
    瀏覽(77)
  • idea 報(bào)錯(cuò)Java Runtime (class file version 61.0), this version of the Java Runtime only ...55.0

    idea 報(bào)錯(cuò)Java Runtime (class file version 61.0), this version of the Java Runtime only ...55.0

    RootLogLevelConfigurator has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0 55對(duì)應(yīng)jdk11,61對(duì)應(yīng)jdk17. 查看自己pom文件中java的版本,將版本改為11 setting中版本改為11 project structure中版本改為11 pom中指定spring

    2024年02月08日
    瀏覽(22)
  • Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file

    Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file

    maven打包報(bào)錯(cuò) java 運(yùn)行時(shí)的最新版本(類文件版本 61.0)編譯的,該版本的 Java 運(yùn)行時(shí)只識(shí)別 52.0 以下的類文件版本 原因: 根據(jù) Spring Boot with spring version 2.5.7 fails repackage with jdk 1.8 這篇文章中下面的說(shuō)法 目標(biāo)org.springframework.boot:spring-boot-maven插件:3.0.0-M1:重新打包失?。河捎?/p>

    2024年02月13日
    瀏覽(38)
  • 【Java異?!客昝澜鉀Qthis version of the Java Runtime only recognizes class file versions up to xx.0異常

    【Java異?!客昝澜鉀Qthis version of the Java Runtime only recognizes class file versions up to xx.0異常

    哈嘍各位,我是小白。時(shí)隔多日我又回來(lái)啦! 最近在部署項(xiàng)目后,發(fā)現(xiàn)線上業(yè)務(wù)數(shù)據(jù)都變成了默認(rèn)值0,而且這個(gè)現(xiàn)象,僅僅出現(xiàn)在當(dāng)次上線后生成的數(shù)據(jù)中 于是我去掃了一眼日志,發(fā)現(xiàn)如下報(bào)錯(cuò) Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/core/resources/IResource has been comp

    2024年02月11日
    瀏覽(16)
  • 寶塔面板站點(diǎn)SSL,Let‘s Encrypt 證書申請(qǐng)報(bào)錯(cuò):Invalid version. The only valid version for X509Req is 0.

    寶塔面板站點(diǎn)SSL,Let‘s Encrypt 證書申請(qǐng)報(bào)錯(cuò):Invalid version. The only valid version for X509Req is 0.

    Linux正式版 7.9.10 CentOS 7.3.1611 x86_64(Py3.7.9) 新服務(wù)器 , 新裝寶塔 , 新增站點(diǎn) ,ssl選擇Let’s Encrypt,點(diǎn)擊申請(qǐng)證書 報(bào)錯(cuò): 文件驗(yàn)證和DNS驗(yàn)證都報(bào)這個(gè)錯(cuò)。 試過(guò)修復(fù)面板(無(wú)效),試過(guò)回退到7.9.8版本(無(wú)效) 您好,您這個(gè)報(bào)錯(cuò)是因?yàn)槊姘逡蕾嚨牟患嫒輰?dǎo)致的證書申請(qǐng)失敗,

    2024年02月09日
    瀏覽(22)
  • unity編輯器報(bào)錯(cuò)Microsoft Visual C# Compiler version

    unity編輯器報(bào)錯(cuò)Microsoft Visual C# Compiler version

    Microsoft ? Visual C# Compiler version 2.9.1.65535 (9d34608e) Copyright ? Microsoft Corporation. unity中設(shè)置的api版本問(wèn)題,修改設(shè)置就可以了 ?

    2024年02月12日
    瀏覽(24)
  • Microsoft Visual Studio 和 Visual Studio Code區(qū)別

    都是 Microsoft 的產(chǎn)品。 Microsoft Visual Studio(簡(jiǎn)稱VS)是一款 開(kāi)發(fā)工具 ,可以系統(tǒng)的開(kāi)發(fā)軟件。類似Java開(kāi)發(fā)工具IDEA。 Visual Studio Code 是一款 代碼編輯器 ,不能單獨(dú)的用來(lái)軟件的開(kāi)發(fā)。比普通的編輯器(類似notepad++)功能多 VS VSCode 概述 開(kāi)發(fā)工具 代碼編輯器 平臺(tái) 只能在 windo

    2024年02月05日
    瀏覽(32)
  • Microsoft Visual Studio—常用快捷鍵

    1 Ctrl+W,W: 瀏覽器窗口 2 Ctrl+W,S: 解決方案管理器 (Solution) 3 Ctrl+W,C: 類視圖 (Class) 4 Ctrl+W,E: 錯(cuò)誤列表 (Error) 5 Ctrl+W,O: 輸出窗口(Output) 6 Ctrl+W,P: 屬性窗口 (Property) 7 Ctrl+W,T: 任務(wù)列表 (Task) 8 Ctrl+W,X: 工具箱 (Tool,t已被任務(wù)列表占用) 9 Ctrl+W,B: 書簽窗口 (Bookmark,方便

    2024年02月06日
    瀏覽(38)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包