如何减少android的tensorflow大小? [英] How to reduce tensorflow size for android?

查看:36
本文介绍了如何减少android的tensorflow大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Android 应用中使用 TensorFlow.但是 .so 文件比需要的要大一点,有没有办法减少 libtensorflow_inference.so 的大小?

I am trying to use TensorFlow in my android app. But the .so file is little bit larger than needed, is there a way to reduce libtensorflow_inference.so size?

链接 TensorFlow-Android-Inference

推荐答案

目前还没有很好的指南来执行此操作,但您可以从使用 print_selective_registration_header 脚本删除不需要的操作开始:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/print_selective_registration_header.py

There's no good guide to doing this yet, but you can start by removing unneeded ops using the print_selective_registration_header script: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/print_selective_registration_header.py

这需要更广泛地记录.

这篇关于如何减少android的tensorflow大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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