【问题标题】:Tensorflow C++ API guide examples on WindowsWindows 上的 Tensorflow C++ API 指南示例
【发布时间】:2017-11-23 11:48:15
【问题描述】:

我使用 VS2015 构建了 tensorflow,并且能够运行一些示例, 如tf_tutorials_example_trainerlabel_image
然后我尝试运行示例here
我能够编译并启动example.cc,但是当到达该行时

Scope root = Scope::NewRootScope();

我收到此错误:

Op type not registered 'NoOp' in binary running on DESKTOP-S5QHRCE.
Make sure the Op and Kernel are registered in the binary running in this process

我错过了什么?

【问题讨论】:

    标签: c++ windows tensorflow


    【解决方案1】:

    我找到了this
    感谢 Joe,他解释了如何使用 /WHOLEARCHIVE 选项来解决问题。
    如果使用 Optimize for debugging (/DEBUG) 选项,为了避免在链接期间出现 of memory error,请执行msbuild /p:Configuration=Release youproject.vcxproj 在命令提示符中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 2017-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多