【问题标题】:Build label_image tensorflow example with Windows10使用 Windows10 构建 label_image tensorflow 示例
【发布时间】:2017-11-02 20:16:55
【问题描述】:

我按照指令here 的每一点构建了张量流。
使用 VS2015 x64 的构建看起来不错,但是在编译 tensorflow\examples\label_image 示例时出现很多错误:

\tensorflow\third_party\eigen3\unsupported\eigen\cxx11\tensor(1): fatal error C1014: too many include files: depth = 1024

a #pragma once 修复它,然后我得到了这个(还有很多类似的)

template <>
struct NumTraits<QInt8> : GenericNumTraits<int8_t> {};

给出这个错误:

\tensorflow\third_party\eigen3\unsupported\eigen\cxx11\src\fixedpoint\fixedpointtypes.h(27): error C2988: unrecognizable template declaration/definition

我也错过了文件

#include "tensorflow/cc/ops/image_ops.h"

是否有人成功构建(并链接...)此示例?

【问题讨论】:

    标签: c++ windows tensorflow


    【解决方案1】:

    我有同样的问题,但这篇文章解决了它:

    https://joe-antognini.github.io/machine-learning/windows-tf-project

    您的包含目录需要按正确的顺序排列,特别是

    {你的路径}\tensorflow\tensorflow\contrib\cmake\build\external\eigen_archive

    必须在前面列出

    {你的路径}\tensorflow\third_party\eigen3

    【讨论】:

      【解决方案2】:

      可能是您的包含路径错误。在我的项目中,我将 _beam_search_ops 项目中的所有 incloud 路径复制到我的项目中。那么问题就解决了

      【讨论】:

        猜你喜欢
        • 2017-05-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-07-05
        • 1970-01-01
        相关资源
        最近更新 更多