Closed Maiadaa closed 1 year ago
Hi, thank you for reporting this. I'll leave this open until we have a TFLite implementation, but know that there is no timeline for this. Feel free to use emojis to express your interest in a TFLite implementation.
For some use cases, it might be useful to look into serving TF-DF models with Yggdrasil Decision Forests (YDF). YDF and TF-DF models are cross-compatible. Since YDF is a pure C++-library, it even run on small devices such as Raspberry PI.
Closing this as a duplicate of https://github.com/tensorflow/decision-forests/issues/5
@Maiadaa May I know how do you convert keras.RandomForestModel to tflite model? Do you manually add custom operator for SimpleMLCreateModelResource? Meanwhile, I'm not sure whether someone can explain whether it's feasible to implement SimpleMLCreateModelResource in TFLite?
I have my keras.RandomForestModel for regression converted to tensorflow lite. I have added the model.tflite file in the assets folder of my android application. However, when running I had the following error, saying that my tflite model has unresolved custom operators.
I found an answer on stack overflow saying that (@rstz at https://stackoverflow.com/questions/75273668/error-while-convering-tensor-flow-decision-tree-model-into-tflite-model):
CAN YOU PLEASE prioritize the conversion compatibility of Decision Forests with TFLite?
The code: MainActivity.kt
(https://i.stack.imgur.com/qWeyd.png) The error is in the highlighted line.
The error: (https://i.stack.imgur.com/vagJC.png)