【问题标题】:when build tensorflow lite python wheel package with tensorflow source code, an error occurred使用tensorflow源码构建tensorflow lite python wheel包时出现错误
【发布时间】:2021-10-25 08:16:42
【问题描述】:

我根据tensorflow官网https://tensorflow.google.cn/lite/guide/build_cmake_pip?hl=zh-cn的指导,用tensorflow源码构建了tensorflow lite python wheel包。同样的错误,我用源代码构建的,也没有在docker容器中,tensorflow/tensorflow:devel,错误是:

编译终止。 make[3]: *** [//gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir/build.make:739: //gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir /kernels/conv3d.cc.o] 错误 1 make[3]: 离开目录'/gen/tflite_pip/python3/cmake_build' make[2]: *** [CMakeFiles/Makefile2:1217: //gen/tflite_pip/python3/cmake_build/CMakeFiles/tensorflow-lite.dir/all] 错误 2 make[2]: 离开目录'/gen/tflite_pip/python3/cmake_build' make[1]: *** [CMakeFiles/Makefile2:1151: //gen/tflite_pip/python3/cmake_build/CMakeFiles/_pywrap_tensorflow_interpreter_wrapper.dir/rule] 错误2 make[1]: 离开目录'/gen/tflite_pip/python3/cmake_build' make: *** [Makefile:186: _pywrap_tensorflow_interpreter_wrapper] 错误 2

有没有人遇到过类似的错误?以及如何解决?

【问题讨论】:

    标签: tensorflow2.0 tensorflow-lite


    【解决方案1】:

    我遇到了同样的错误,看起来在最新版本的 tensorflow lite CMake 中使用超过 20-30 个线程时出现问题。

    所以我设置了 BUILD_NUM_JOBS=8 并且 Wheel 包的 CMake 对我来说就像一个魅力。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-04
      • 2018-10-11
      • 2018-02-03
      • 1970-01-01
      • 1970-01-01
      • 2017-08-23
      • 1970-01-01
      相关资源
      最近更新 更多