[英]Build label_image tensorflow example with Windows10
我按照这里的每条指令构建了tensorflow。
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
用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"
有没有人成功构建(并链接...)此示例?
可能是您的包含路径错误。 在我的项目中,我将_beam_search_ops项目中的所有incloud路径复制到我的项目中。 那么问题就解决了
我遇到了同样的问题,但是这篇文章解决了这个问题:
https://joe-antognini.github.io/machine-learning/windows-tf-project
您的包含目录需要正确顺序,特别是
{您的路径} \\ tensorflow \\ tensorflow \\ contrib \\ cmake \\ build \\ external \\ eigen_archive
必须在之前列出
{您的路径} \\ tensorflow \\ third_party \\ eigen3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.