无法在Windows 7上使用OnnxRuntime。

huangapple go评论159阅读模式
英文:

Failed to use OnnxRuntime on Windows 7

问题

这是我们在使用OnnxRuntime在Windows 7上遇到的问题。我们已经提供了我们机器的软件环境,供您参考。

软件环境

  • Windows 10
  • Visual Studio 2022
  • dotnet 6.0
  • Microsoft.ML.OnnxRuntime 1.14.1(通过NuGet分发)

虽然该项目在Windows 10上运行正常,但在尝试将发布包移动到Windows 7机器时遇到了问题。具体来说,可执行文件无法加载onnxruntime.dll。该问题已经引起了我们在GitHub上的注意,我们注意到了以下评论:https://github.com/microsoft/onnxruntime/issues/5483

有人提到该问题已在#4636中得到解决,然而,我们仍然无法在Windows 7上成功启动程序。我们希望您能帮助我们找到解决方案。

我们尝试过:

  • 从Windows 10复制dll文件到Windows 7机器并尝试注册它
  • 在Windows 7中编译ORT。虽然编译成功,但由于kernel32.dll,其单元测试失败
  • 使用较旧版本的ORT
英文:

Here's an issue we are encountering when using OnnxRuntime on Windows 7. We have provided below the software environment of our machine for your reference.

Software Environment

  • Windows 10
  • Visual Studio 2022
  • dotnet 6.0
  • Microsoft.ML.OnnxRuntime 1.14.1 (distributed by NuGet)

While the project works on Windows 10, we have encountered an issue when attempting to move the release package to a Windows 7 machine. Specifically, the executable file is unable to load the onnxruntime.dll. The issue has been brought to our attention on GitHub, where we noticed the following comment: https://github.com/microsoft/onnxruntime/issues/5483

It was mentioned that the issue has been resolved in #4636, however, we still have not been able to successfully launch the program on Windows 7. We hope that you could assist us in finding a solution.

We have tried:

  • Copying the dll file from Windows 10 to the Windows 7 machine and attempting to register it
  • Compiling the ORT in Windows 7. While the compilation was successful, its unit tests failed due to the kernel32.dll
  • Using older versions of ORT

答案1

得分: 1

问题在我给微软的一位关键开发者发邮件后得到解决。

解决方案: 您只需要从源代码自己编译它。Nuget包中的onnxruntime.dll不支持Windows 7,而从1.15.0版本开始,即使从源代码编译也不支持Windows 7。因此,请尝试下载1.14.1版本的代码并自行编译onnxruntime.dll

英文:

Problem solved after my mailing to a key developer from Microsoft.

Solution: You just need to compile it yourself from source. The onnxruntime.dll in the Nuget package does not support Windows 7, and latest code starting from 1.15.0 does not support windows 7 even when compiled from source. So try to download the 1.14.1 code and compile onnxruntime.dll yourself.

huangapple
  • 本文由 发表于 2023年5月24日 21:59:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76324358.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定