【发布时间】:2018-09-10 09:59:05
【问题描述】:
我正在尝试在 alpine 3.8 中使用 bazel-0.16 构建 tensorflow-1.10.0。但是它给了我一个错误,如下所述。
tensorflow/contrib/lite/kernels/internal/spectrogram.cc:46:22: error: 'tflite::internal::Log2Floor' declared as an 'inline' variable
inline int Log2Floor(uint n) {
^~~~
tensorflow/contrib/lite/kernels/internal/spectrogram.cc:46:22: error: 'uint' was not declared in this scope
tensorflow/contrib/lite/kernels/internal/spectrogram.cc:244:1: error: expected '}' at end of input
} // namespace tflite
^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
我用来构建的命令是:
bazel build --config=opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" //tensorflow/tools/pip_package:build_pip_package
GCC 和 g++ 版本分别是 6.4 和 6.4。
我怎样才能避免构建tensorflow/contrib/lite 包,因为无论如何我都不需要使用它。
另外 tensorflow-1.7.0 正在成功构建,但是 tensorflow-1.10.0 出现上述编译问题。
【问题讨论】:
标签: python tensorflow bazel alpine tensorflow-lite