returnn icon indicating copy to clipboard operation
returnn copied to clipboard

Convert Returnn model to TFLite for on-device deployment

Open manish-kumar-garg opened this issue 5 years ago • 2 comments
trafficstars

I want to convert the returnn full attention setup model to TFLite for on-device deployment. Should I reimplement the model in TF2.0, load weights and convert to TFLite? Or any other way is there? What steps should I follow?

manish-kumar-garg avatar Jan 27 '20 13:01 manish-kumar-garg

@curufinwe might have some experience on this. Do you really need TFLite? Normal TF is not an option? Why? Things like quantization, sparsification, etc, all should work just as well with normal TF.

albertz avatar Jan 27 '20 14:01 albertz

We (at i6) have not yet tried to convert our models to TFLite. My suggestion would be to freeze the graph and then use the tools that come with TFLite to do the conversion.

curufinwe avatar Jan 27 '20 17:01 curufinwe