Transition Lite pybind_extension
targets to use the new link_in_framework
argument to dynamically link to libtensorflow_framework.so
.
That is what `tf_binary_additional_srcs()` was doing, but now we can specify that cleanly using an argument to the bazel macro. PiperOrigin-RevId: 301172587 Change-Id: Ia85d12b38e481638fcd598ed2d94690fa1b99b00
This commit is contained in:
parent
f46ac90866
commit
8864f9738d
@ -1,5 +1,4 @@
|
||||
load("//tensorflow:tensorflow.bzl", "pybind_extension")
|
||||
load("//tensorflow:tensorflow.bzl", "tf_binary_additional_srcs")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
@ -66,8 +65,9 @@ pybind_extension(
|
||||
name = "_pywrap_tensorflow_interpreter_wrapper",
|
||||
srcs = [
|
||||
"interpreter_wrapper_pybind11.cc",
|
||||
] + tf_binary_additional_srcs(),
|
||||
],
|
||||
hdrs = ["interpreter_wrapper.h"],
|
||||
link_in_framework = True,
|
||||
module_name = "_pywrap_tensorflow_interpreter_wrapper",
|
||||
deps = [
|
||||
":interpreter_wrapper_lib",
|
||||
|
@ -1,5 +1,4 @@
|
||||
load("//tensorflow:tensorflow.bzl", "pybind_extension")
|
||||
load("//tensorflow:tensorflow.bzl", "tf_binary_additional_srcs")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
@ -46,8 +45,9 @@ pybind_extension(
|
||||
name = "_pywrap_tensorflow_lite_calibration_wrapper",
|
||||
srcs = [
|
||||
"calibration_wrapper_pybind11.cc",
|
||||
] + tf_binary_additional_srcs(),
|
||||
],
|
||||
hdrs = ["calibration_wrapper.h"],
|
||||
link_in_framework = True,
|
||||
module_name = "_pywrap_tensorflow_lite_calibration_wrapper",
|
||||
deps = [
|
||||
":calibration_wrapper_lib",
|
||||
@ -61,8 +61,9 @@ pybind_extension(
|
||||
name = "_pywrap_tensorflow_lite_sparsification_wrapper",
|
||||
srcs = [
|
||||
"sparsification_wrapper_pybind11.cc",
|
||||
] + tf_binary_additional_srcs(),
|
||||
],
|
||||
hdrs = ["sparsification_wrapper.h"],
|
||||
link_in_framework = True,
|
||||
module_name = "_pywrap_tensorflow_lite_sparsification_wrapper",
|
||||
deps = [
|
||||
":sparsification_wrapper_lib",
|
||||
|
4
tensorflow/lite/python/testdata/BUILD
vendored
4
tensorflow/lite/python/testdata/BUILD
vendored
@ -1,6 +1,5 @@
|
||||
load("//tensorflow/lite:build_def.bzl", "tf_to_tflite")
|
||||
load("//tensorflow:tensorflow.bzl", "pybind_extension")
|
||||
load("//tensorflow:tensorflow.bzl", "tf_binary_additional_srcs")
|
||||
|
||||
package(
|
||||
default_visibility = ["//tensorflow:internal"],
|
||||
@ -92,9 +91,10 @@ pybind_extension(
|
||||
name = "_pywrap_test_registerer",
|
||||
srcs = [
|
||||
"test_registerer_wrapper.cc",
|
||||
] + tf_binary_additional_srcs(),
|
||||
],
|
||||
hdrs = ["test_registerer.h"],
|
||||
additional_exported_symbols = ["TF_TestRegisterer"],
|
||||
link_in_framework = True,
|
||||
module_name = "_pywrap_test_registerer",
|
||||
deps = [
|
||||
":test_registerer",
|
||||
|
Loading…
Reference in New Issue
Block a user