gpt4 book ai didi

Error Could not deserialize ATN with version (expected 4) when loading pytorch_lightning(加载pytorch_lightning时,无法反序列化版本为(预期为4)的ATN)

转载 作者:bug小助手 更新时间:2023-10-24 23:15:37 45 4
gpt4 key购买 nike



When trying to import pytorch_lightning

尝试导入pytorch_lightning时


import pytorch_lightning as pl

I get the Exception: Could not deserialize ATN with version (expected 4).
I'm using pytorch 2.0.0+cu118, pytorch-lightning 2.08, Python 3.9.12 runtime, anltr4 runtime 4.11.1 on Windows 11 machine. What can I do to resolve this? I've never even heard of ANTLR until today so if the solution requires working with ANTLR please share step-by-step instructions or link, not 'regenerate the parser'. Thanks.

我得到一个异常:无法使用版本反序列化ATN(预期为4)。我在Windows11机器上使用的是pytorch 2.0.0+cu118、pytorch-lightning 2.08、Python3.9.12运行时、anltr4运行时4.11.1。我能做些什么来解决这个问题?我甚至直到今天才听说过ANTLR,所以如果解决方案需要使用ANTLR,请分享逐步说明或链接,而不是“重新生成解析器”。谢谢。


I tried reinstalling different versions of the libraries mentioned in the problem description.

我尝试重新安装问题描述中提到的不同版本的库。


更多回答

Maybe this helps - stackoverflow.com/questions/76308886/…

也许这会有帮助-Stackoverflow.com/Questions/76308886/…

优秀答案推荐
更多回答

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com