【问题标题】:How to build tensorflow lite c++ shared library for armeabi-v7a?如何为 armeabi-v7a 构建 tensorflow lite c++ 共享库?
【发布时间】:2018-09-05 03:11:38
【问题描述】:

我正在尝试为 armeabi-v7a 构建 tflite 的 c++ 共享库。有人试过吗?谢谢

【问题讨论】:

    标签: tensorflow-lite


    【解决方案1】:

    从源代码构建适用于 Android 目标的 TensorFlow Lite 的一般说明,请参见 here

    tensorflow-lite.aar target 包含 TensorFlow Lite 原生共享库,并且此 .aar 可以放入您常用的 Android 构建管道(例如 Android Studio 或 gradle)中。或者,您可以直接通过以下方式构建native shared library

    bazel build --cxxopt='--std=c++11' -c opt --config=android_arm tensorflow/contrib/lite/java:libtensorflowlite_jni
    

    【讨论】:

    • 这不起作用,生成的 .so 没有引用 tflite::Interpreter 等等。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-09
    • 2012-08-26
    相关资源
    最近更新 更多