How to link TensorFlow_Text ops into Android/iOS binaries?


E/tflite  (27736): Op type not registered 'CaseFoldUTF8' in binary running on localhost. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.
E/tflite  (27736): Op type not registered 'RegexSplitWithOffsets' in binary running on localhost. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) `tf.contrib.resampler` should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.



Oh, looking at the issue/thread you made, I assume these two are it.

  
    
    
    How to link TensorFlow_Text ops into Android/iOS binaries? General Discussion
  
  
    Honestly, my current full model is a little complex to refactor into colab now as it is written into bits of classes. It was saved into SavedModels, loaded back for outputs verification, then converted using tf.lite.TFLiteConverter.from_saved_model(). There were some issues regarding space optimisation/quantisation as well, but I will probably explore after I at least get the model running on mobile. 
I was trying to get around the issue of tflite’s currently unsupported initialisation of vocab.…
  


thanks for you research into the topic it seems like a lot of work either my c++ sentence piece way or your way. Now I have a choice to make about really moving the project to flutter, considering the amount of effort, it would take for making to work on ios with flutter, might as well make another native app for ios.