No session factory registered for the given session options

qq_32206625 2017-03-27 03:35:30
我是在windows10下源码安装的tensorflow r0.12.0,源码编译成功了,而且执行编译生成的tf_label_image_example.exe也没有问题,但是我在写自己的工程时,总是报这种错误:E d:\program file\tensorflow-r0.12\tensorflow-r0.12\tensorflow\core\common_runtime\session.cc:58] Not found: No session factory registered for the given session options: {target: "" config: } Registered factories are {}.

然后,为了实验一下,我把tf_label_image_example里的代码完全copy了下来,重新穿件一个工程,发现也报这种错误,我就惊呆了。。。不知道为什么,同样的代码,编译的时候都成功了,在自己的工程里竟然报错,这是怎么回事,折腾一周了,完全没有进展。。。。
...全文
2497 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
我也遇到了这个问题,试了很多方法没解决:https://blog.csdn.net/wd1603926823/article/details/92843830
Kelvin_Peng 2017-12-21
  • 打赏
  • 举报
回复
The error was because of the order of the included libraries in the build command for the qmake target! Using the order -ltensorflow_framework -ltensorflow_cc in the g++ command works.这是网上的解决方案,我自己实验我出错的原因是使用了tensorflow库,替换为tensorflow_cc解决,重新生成,希望对你们有用
mf18356086792 2017-08-23
  • 打赏
  • 举报
回复
你好 请问怎么解决的呀 求帮助
fyx2112 2017-06-01
  • 打赏
  • 举报
回复
问题解决了没,我也遇到了同样的问题,急。。。。。。。。

4,448

社区成员

发帖
与我相关
我的任务
社区描述
图形图像/机器视觉
社区管理员
  • 机器视觉
  • 迪菲赫尔曼
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧