Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

这篇具有很好参考价值的文章主要介绍了Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

最近在做深度学习的项目,onnx用c#程序部署。

然后发现在部署/移植模型的时候遇到了一个问题,找了很多资料都没解决

还得亲自动手了

报错弹窗内容
System.TypeInitializationException:“The type initializer for 'Microsoft.ML.OnnxRuntime.NativeMethods' threw an exception.”
EntryPointNotFoundException: Unable to find an entry point named 'OrtGetApiBase' in DLL 'onnxruntime'.
Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

各种测试以后发现是程序包的问题

解决办法是移除掉项目中已经有的microsoft.ml.onnxruntime包,自己重新安装,即可。

步骤1:包名上右击--》移除,即可删除

Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

步骤2:项目上右击-->管理nuget程序包,打开nuget功能

Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

步骤3:浏览框输入microsoft.ml.onnxruntime进行搜索,选择第一安装即可,安装完以后,再次运行项目的时候就不报错了。

Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录

整个项目完整源码百度云连接

【链接:https://pan.baidu.com/s/1eeewmblZVQ2WWsqqJQwdCw?pwd=1234

提取码:1234】

项目代码来自:冰凌呀文章来源地址https://www.toymoban.com/news/detail-514899.html

到了这里,关于Unable to find an entry point named ‘OrtGetApiBase‘ in DLL ‘onnxruntime‘解决办法记录的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • (vopt-7063) Failed to find ‘glbl‘ in hierarchical name 问题解决

    使用ISE或者vivado调用modelsim/questasim进行仿真;或者不使用集成环境,单独在modelsim/questasim编译库后进行仿真 在仿真前已经将glbl.v编译到work库中,仿真时输入命令 vsim -voptargs=+acc work.sys_top -L unisim -L secureip -t ps -Lf unisim_ver 仿真报错: (vopt-7063) Failed to find ‘glbl’ in hierarchical n

    2024年02月15日
    浏览(57)
  • docker报Unable to find image ‘image-name:tag‘ locallydocker: Error response from daemon: pull acces

    昨天在使用Docker时,遇到拉取镜像失败的问题。其中一个错误信息是\\\"Unable to find image ‘image-name:tag’ locally docker: Error response from daemon: pull access denied for image-name, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied\\\"。今天我将分享如何解决此问

    2024年02月10日
    浏览(44)
  • vue中使用html2canvas报错 Unable to find element in cloned iframe

    安装 npm install --save html2canvas 使用 home.vue !!报错 Uncaught (in promise) Unable to find element in cloned iframe 原因:使用了 elementUI中的el-popover组件,挂载到body里的 解决:

    2024年01月19日
    浏览(50)
  • Centos8服务器中yum安装时的错误Unable to find a match、No URLs in mirrorlist解决

        开始遇到报错后更新了一下源,但发现依然是提示No match for argument Unable to find a match。如下:肯定和Centos8有点关系。 [root@test test]# yum install iftop No match for argument: iftop centos8 Error: Unable to find a match: iftop     有些资料说是Centos8上的yum源里面没有epel,而iftop等一些软件被迁

    2024年04月28日
    浏览(42)
  • Unable to initialize Git; AggregateError(2) Error: Unable to find git Error: Unable to find git

    MacBook Pro m1 升级系统到13版本后,系统中原有的git突然就不能用了,,,输入git -v 既然打印不到版本号???使用which git 是能打印到配置路径的,,, 解决方案: stack overfolw 帖子地址 然后会跳出一个弹窗让你安装xcode-select 点击安装,自动安装完成,控制台再输入git -v就能

    2024年02月12日
    浏览(57)
  • Caused by: java.lang.IllegalArgumentException: Could not find a ‘KafkaClient‘ entry in the JAAS conf

    针对找不到jaas.conf文件避坑: 问题前提: 运行程序命令:java  -cp  ------------ 解决办法(这只是一种很难注意到的细节,其他原因还需再次排查): 运行命令需要在跟配置文件同级目录下运行。如:你的配置文件在/tmp/resources下,你的命令需要在/tmp下运行即可。

    2024年02月13日
    浏览(45)
  • 【Golang map并发报错】panic: assignment to entry in nil map

    go并发写 map[string]interface{} 数据的时候,报错: panic: assignment to entry in nil map 多个key同时操作一个map时,如: test[key1] = 1 test[key2] = \\\"a\\\" test[key3] = true 就会遇到并发nil值报错,什么test[key-xxx] = make()根本不行。 用异步sync.Map解决: Lock锁那个比较麻烦,不建议使用。推荐使用sync

    2024年01月19日
    浏览(26)
  • 【docker】 Unable to find image的解决办法

      今天尝试了下docker,发现存在以下问题,进行记录。 时间:2023-12-26 操作系统:centos opencloudos(腾讯云服务器所用centos) 1、pull测试的hello-world镜像报错: 查了下,需要新建daemon.json文件,把docker国外源变更为国内源。 2、尝试 在里面insert: 然而并不支持,重新运行docker报

    2024年02月19日
    浏览(35)
  • unable to find valid certification path to requested target

    调用https接口时出现该异常, Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target   原因是可以看上图,因为本地没有目标服务器证书导致。解决此方法的两种方案,1.在运行

    2024年02月02日
    浏览(39)
  • SpringBootTest单元测试异常:Unable to find a @SpringBootConfiguration

    使用@SpringBootTest单元测试启动是异常:         提示为没有找到确定必须的注解,即没有找到springboot的启动类。 方法一         将单元测试类放在与启动类相同的目录下,如: 启动类路径:main/java/org/lizz/obj 单测类路径:test/java/org/lizz/obj 方案二         使用@SpringBootTes

    2024年02月12日
    浏览(27)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包