为什么实际上不可能加载onnxruntime.dll?

问题描述

使用Microsoft开发人员提供的教程,我遵循了在https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-onnx创建的教程。

我确保从Nvidia的站点安装CUDA V10.1.243和cuDNN 7.6.5。

尽管如此,即使将C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin的全部内容复制到我的项目二进制文件的目录machinelearning-samples\samples\csharp\end-to-end-apps\ObjectDetection-Onnx\OnnxObjectDetectionApp\bin\Debug\netcoreapp3.0之后,在编译示例MS提供的示例程序时,我仍然遇到以下错误Exception thrown: 'System.DllNotFoundException' in System.Private.CoreLib.dll An exception of type 'System.DllNotFoundException' occurred in System.Private.CoreLib.dll but was not handled in user code Unable to load DLL 'onnxruntime' or one of its dependencies: The specified module Could not be found. (0x8007007E)

这应该确保可以从PATH访问它们,对吗?我还将它们的原始位置也包含在系统路径的NVIDIA GPU Toolkit中。我正在使用最新版本的Visual Studio 2019加载和编译此解决方案。有没有人能够成功运行此代码,如果可以,怎么办?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)