go-tflite
go-tflite copied to clipboard
how to link libtensorflowlite_flex.so ?
when loading the model, it report this error:
Select TensorFlow op(s), included in the given model, is(are) not supported by this interpreter. Make sure you apply/link the Flex delegate before inference. For the Android, it can be resolved by adding "org.tensorflow:tensorflow-lite-select-tf-ops" dependency. See instructions: https://www.tensorflow.org/lite/guide/ops_select
this documents tell us how to build the libtensorflowlite_flex.so https://www.tensorflow.org/lite/guide/ops_select#cc
Do you mean that the libtensorflowlite_flex.so is delegator for flex ? Then, go-tflite does not support it.
Thanks. Is it possible to support it technically? Do you plan to look into this, if not, we may try to investigate.
go-tflite is using delegate interface https://github.com/mattn/go-tflite/tree/master/delegates
If want to add the feature, we need to add new delegate.