[英]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.