【问题标题】:How to compile tflite with GPU support?如何编译支持 GPU 的 tflite?
【发布时间】:2020-01-07 12:56:48
【问题描述】:

我尝试为支持 GPU 的 Android 编译 tflite

bazel build --cxxopt='--std=c++11' -c opt --fat_apk_cpu=arm64-v8a //tensorflow/lite/java:tensorflowlite_gpu

但我收到几条错误消息,例如:

./tensorflow/lite/delegates/gpu/gl/gl_call.h:60:29: error: no viable conversion from returned value of type 'tflite::gpu::Status' to function return type 'int'
    if (status.ok()) return OkStatus();

我是否需要将任何其他命令行参数传递给 bazel?

【问题讨论】:

    标签: java c++ delegates gpu tensorflow-lite


    【解决方案1】:

    您需要-DMESA_EGL_NO_X11_HEADERS 标志。见https://github.com/tensorflow/tensorflow/issues/27320

    【讨论】:

      猜你喜欢
      • 2019-06-10
      • 1970-01-01
      • 1970-01-01
      • 2020-09-19
      • 1970-01-01
      • 1970-01-01
      • 2018-04-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多