mattn / go-tflite

Go binding for TensorFlow Lite
MIT License
299 stars 44 forks source link

how to link libtensorflowlite_flex.so ? #49

Open superrxan opened 1 year ago

superrxan commented 1 year ago

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

mattn commented 1 year ago

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

ngjaying commented 1 year ago

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

mattn commented 1 year ago

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.