Hacker News new | ask | show | jobs
by krab 3453 days ago
> - There are tools for compiling your trained models as static C++ binaries on mobile devices

I'm looking for such tool but I haven't found anything apart from C++ libraries that also focus on training. Can you give me some pointers? Thanks.

1 comments

In the contrib folder in the TensorFlow project, you'll find the makefile subdirectory:

https://github.com/tensorflow/tensorflow/tree/master/tensorf...

The readme has a general overview of how you'll approach using it. Note that you'll want to optimize for inference (remove unnecessary operations from the graph) [0] and freeze your graph (convert Variables into constant tensors) [1] to drop in your own model for the pretrained Inception model that's used as an example.

[0]: https://github.com/tensorflow/tensorflow/blob/master/tensorf...

[1]: https://github.com/tensorflow/tensorflow/blob/master/tensorf...