是否可以在 android 上训练 tensorflow? [英] Is it possible to train tensorflow on android?

查看:27
本文介绍了是否可以在 android 上训练 tensorflow?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎没有 C++ API 来训练张量流图并保存到 pb.那么,有什么办法可以在 Android 平台上做到这一点?我可以在 Android 设备上使用 python API 构建 tensorflow 工作区吗?

It seems no C++ API to train tensorflow graph and save to pb.So,any way to do that on Android platform? can I build tensorflow workspace with python API on Android devices?

推荐答案

由于您需要在 android 设备上安装 tensorflow,然后在 android 设备上运行 python 脚本,我非常怀疑这是否可行.
此外,由于培训始终是资源密集型的,因此在移动设备上执行此操作没有任何意义.对于大多数问题,您甚至希望有足够的 GPU 能力来进行训练,而这显然是 Android 设备无法提供的.
将 tensorflow 网络安装到您的 android 设备上的方法是在本地对其进行训练,然后将经过训练的网络发送到您的设备上,然后只需执行评估而不进行培训.访问 Tensorflow Mobile 了解更多相关信息.

Since you would need to install tensorflow on your android device and then run a python script on your android device, I highly doubt that this is possible.
Also, since training is always relatively resource intensive, it does not really make sense to do this on mobile devices. For most problems, you'll even want to have decent GPU power for training which obviously can't be provided by an android device.
The way to get a tensorflow network onto your android device would be to train it locally and then ship the trained network to your device, which then only has to perform the evaluation and no training. Go to Tensorflow Mobile for more insights on that.

这篇关于是否可以在 android 上训练 tensorflow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆