简体   繁体   中英

What's the difference between Android TensorFlow support and TensorFlow Lite for Android?

I see a sample in Google codelabs this

it requirements dependencies Android TensorFlow support

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

I know the TensorFlow Lite was help developer to use the model in mobile devices

What's the difference between these two

The code snippet which you provided corresponds to TensorFlow Mobile.

  • TensorFlow Mobile is a program useful for running protocol buffers ( .pb ) files on Android , iOS and other IoT stuff. It can only be used to run inferences on a TensorFlow model which is converted to a .pb file. It can only function over specific platforms.

  • 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 and also TensorFlow C++ APIs.

Even Google recommends to use TensorFlow Lite instead of TensorFlow Mobile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM