Build XNNPACK delegate as a static library

This is a work-around for improper linking of libXNNPACK.a into
libxnnpack_delegate.so in Mac builds.

PiperOrigin-RevId: 293326598
Change-Id: I5e522604e34d766d8aca8cf2fc0292e4240e4cff
This commit is contained in:
Marat Dukhan 2020-02-05 02:16:15 -08:00 committed by TensorFlower Gardener
parent 98bffc9a72
commit 6e5d3265bc

View File

@ -18,6 +18,7 @@ cc_library(
name = "xnnpack_delegate",
srcs = ["xnnpack_delegate.cc"],
hdrs = ["xnnpack_delegate.h"],
linkstatic = True,
deps = [
"//tensorflow/lite:kernel_api",
"//tensorflow/lite:util",