Build Tensorflow Lite shared library:
Modify the code: tensorflow/contrib/lite/BUILD in TensorFlow source:
Modify the code: tensorflow/contrib/lite/BUILD in TensorFlow source:
cc_binary(
name = "libtflite.so",
deps = [":framework",
"//tensorflow/contrib/lite/kernels:builtin_ops",
"//tensorflow/contrib/lite/kernels:eigen_support",
"//tensorflow/contrib/lite/kernels:gemm_support",
],
linkopts=["-shared -Wl,--whole-archive" ],
linkshared=1
)