4 ms·
How do you embed in a mobile app?
by redsummer 10y ago
How do you embed in a mobile app?
- timanglade 10y agoEssentially there are two ways to do this. The “old” way is to export your TensorFlow neural network into a protobuf file, then load up the TensorFlow interpreter in your iOS/Android app, feed it the neural net, and run the inference directly on device. The GitHub repo [0] has a good set of examples of what that looks like in practice. The new, still experimental way is to compile your neural net into executable code with their XLA / tfcompile tool, and link that into your app. They are adding more docs on this on the TensorFlow website [1]. [0]: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/ios_examples https://github.com/tensorflow/tensorflow/tree/master/tensorf... [1]: https://www.tensorflow.org/versions/master/experimental/xla/tfcompile https://www.tensorflow.org/versions/master/experimental/xla/...
- nojvek 10y agoRunning neural nets on a standard mobile device will be game changing. I can't wait for mobile devices having custom chips to do AI related tasks. I'm predicting in a decade we'll have offline speech and image recognition running on the phone.
- xtf 10y agoThey don't want you to go there. Remind who started the latest big AI Projects (Google, Amazon, Microsoft, Facebook) and I don't think the will stop grabbing data. I think they'll develop a hivemind, where mobile adds to the pool. In short Skynet ;)
- nojvek 10y agoHopefully the ASICs are fast and open enough so we can see some open AIs who respect our privacy and security concerns