Android TensorFlow 支持和 TensorFlow Lite Android 有什么区别?
What's the difference between Android TensorFlow support and TensorFlow Lite for Android?
我在 Google 代码实验室中看到了示例 this
它需要依赖项Android TensorFlow 支持
dependencies {
implementation 'org.tensorflow:tensorflow-android:1.2.0-preview'
}
我知道 TensorFlow Lite 有助于开发人员在移动设备中使用该模型
设备
这两个有什么区别
您提供的代码段对应TensorFlow Mobile。
TensorFlow Mobile 是一个对 运行ning protocol buffers (.pb) 文件非常有用的程序 Android 、iOS 和其他 IoT 东西。它只能用于 运行 对转换为 .pb 文件的 TensorFlow 模型进行推理。它只能在特定平台上运行。
TensorFlow Lite is a successor of TensorFlow Mobile. Lite can run inferences on models which are converted to a .tflite file. The Lite version also allows the developer to run Graphs, Sessions and Tensors over Java and Android. It also provides the Neural Networks API. It can functions over Android and iOS devices, Firebase MLKit, TensorFlow.js 以及 TensorFlow C++ API。
甚至 Google 也建议使用 TensorFlow Lite 而不是 TensorFlow Mobile。
我在 Google 代码实验室中看到了示例 this
它需要依赖项Android TensorFlow 支持
dependencies {
implementation 'org.tensorflow:tensorflow-android:1.2.0-preview'
}
我知道 TensorFlow Lite 有助于开发人员在移动设备中使用该模型 设备
这两个有什么区别
您提供的代码段对应TensorFlow Mobile。
TensorFlow Mobile 是一个对 运行ning protocol buffers (.pb) 文件非常有用的程序 Android 、iOS 和其他 IoT 东西。它只能用于 运行 对转换为 .pb 文件的 TensorFlow 模型进行推理。它只能在特定平台上运行。
TensorFlow Lite is a successor of TensorFlow Mobile. Lite can run inferences on models which are converted to a .tflite file. The Lite version also allows the developer to run Graphs, Sessions and Tensors over Java and Android. It also provides the Neural Networks API. It can functions over Android and iOS devices, Firebase MLKit, TensorFlow.js 以及 TensorFlow C++ API。
甚至 Google 也建议使用 TensorFlow Lite 而不是 TensorFlow Mobile。