如何减少android的tensorflow大小? [英] How to reduce tensorflow size for android?
问题描述
我正在尝试在我的 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屋!