Optional xnnpack feature relies on weak symbols which are unavailable on Windows #59913
Labels
comp:lite
TF Lite related issues
comp:lite-xnnpack
TensorFlow Lite XNNPack related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.4
for issues related to TF 2.4
type:feature
Feature requests
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?
The text was updated successfully, but these errors were encountered: