go-tflite icon indicating copy to clipboard operation
go-tflite copied to clipboard

how to link libtensorflowlite_flex.so ?

Open superrxan opened this issue 1 year ago • 3 comments

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

superrxan avatar Jul 03 '23 12:07 superrxan

Do you mean that the libtensorflowlite_flex.so is delegator for flex ? Then, go-tflite does not support it.

mattn avatar Jul 03 '23 13:07 mattn

Thanks. Is it possible to support it technically? Do you plan to look into this, if not, we may try to investigate.

ngjaying avatar Jul 14 '23 01:07 ngjaying

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.

mattn avatar Jul 14 '23 05:07 mattn