Converting Tensorflow Models to C code

Hi,

I use Tensorflow to train neural networks in my research. I would like to convert the network models in python to C code. I wonder if there is any tool to do this?

Thanks
David

You can evaluate different solutions:

You can inspect also how cppflow uses TF C API to load and inference a model:

Other solutions to evaluate:

1 Like

Thank you for the suggested solutions. I wonder whether there is any example C code which implements neural networks using the TensorFlow C API?

Thanks
David

You could check if you find something useful at:

https://tensorflow-prod.ospodiscourse.com/t/tensorflow-c-api-guides-documentation/4177?u=bhack