【问题标题】:What's the difference between Android TensorFlow support and TensorFlow Lite for Android?Android TensorFlow support 和 TensorFlow Lite for Android 有什么区别?
【发布时间】:2018-11-20 14:07:14
【问题描述】:

我在 Google 代码实验室 this 中看到了一个示例

它需要依赖 Android TensorFlow 支持

dependencies {
implementation 'org.tensorflow:tensorflow-android:1.2.0-preview'
}

我知道 TensorFlow Lite 可以帮助开发人员在移动设备中使用该模型 设备

这两者有什么区别

【问题讨论】:

    标签: android tensorflow tensorflow-lite


    【解决方案1】:

    您提供的代码 sn-p 对应 TensorFlow Mobile。

    • TensorFlow Mobile 是一个程序,可用于在 Android、iOS 和其他 IoT 设备上运行协议缓冲区 (.pb) 文件。它只能用于在转换为 .pb 文件的 TensorFlow 模型上运行推理。它只能在特定平台上运行。

    • TensorFlow Lite 是 TensorFlow Mobile 的继任者。 Lite 可以对转换为 .tflite 文件的模型运行推理。 Lite 版本还允许开发人员在 Java 和 Android 上运行图形、会话和张量。它还提供神经网络 API。它可以在 Android 和 iOS 设备、Firebase MLKitTensorFlow.js 以及 TensorFlow C++ API 上运行。

    甚至 Google 都建议使用 TensorFlow Lite 而不是 TensorFlow Mobile。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-08-16
      • 1970-01-01
      • 2022-01-17
      • 2020-03-16
      • 2018-11-10
      • 1970-01-01
      • 2015-02-24
      相关资源
      最近更新 更多