Closed suyash-narain closed 1 week ago
Hi @suyash-narain,
As per my knowledge, the error you are encountering is a classic cyclic dependency issue when building the TensorFlow Lite library. First try the following commands to resolve the cyclic dependency.
git submodule foreach git clean -dfx
git submodule update
and
instead of including simple_opaque_delegate
directly in libtensorflowlite.so
, try to build it as a separate static library. This library can then be linked with applications that need the delegate functionality, without requiring it to be part of the core TensorFlow Lite library.
Have you tried with latest TF 2.16.1 stable version?. If not resolved with this, please help us with reproducible code to resolve the issue.
Thank You
This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further.
I am using tf v2.14 and would like to build tflite opaque delegate such that its references are included in the tflite shared library libtensorflowlite.so
when i include simple_opaque_delegate build targets in the tflite BUILD file //tensorflow/lite/BUILD, I get the cyclic dependency error:
I add the build target below this line: https://github.com/tensorflow/tensorflow/blob/50d63587561074139dba4053c8023d5ea8fd6cf7/tensorflow/lite/BUILD#L750 adding it as a dep to build the tensorflowlite shared library //tensorflow/lite/delegates/utils:simple_opaque_delegate
how do i ensure simple_opaque_delegate is built and its symbols present in the tensorflowlite shared library? If i replace simple_opaque_delegate with simple_delegate, i don't get this error though and shared library builds perfectly. thanks