Open pkgoogle opened 1 week ago
This issue originally reported by @georgthegreat has been moved to this dedicated repository for LiteRT to enhance issue tracking and prioritization. To ensure continuity, we have created this new issue on your behalf.
We appreciate your understanding and look forward to your continued involvement.
Original Issue: https://github.com/tensorflow/tensorflow/issues/59913 Opening on behalf of @georgthegreat
Issue Type
Build/Install
Have you reproduced the bug with TF nightly?
Yes
Tensorflow Version
2.4
Current Behaviour?
At the time tflite comes with optional xnnpack feature which relies on TFLITE_ATTRIBUTE_WEAK attribute applied to a delegate function.
As there are no weak symbols on Windows, this feature can not be used universally (i. e. independent from target platform).
I suggest switching this feature on / off in configure time (when build with CMake) or via explicit choosing of option (when build with Bazel). This will force every client to explicitly add a dependency on either xnnpack_enabled or xnnpack_disabled library, just in the same way as with other delegates (i. e. nnapi).
What do you think?