Tighten some core dependencies, so that code that is only interested in (de)serializing Tensors doesn't require all of XLA and all TF kernels.

PiperOrigin-RevId: 318109428
Change-Id: Ibc6129213267432e1c9425a93106fe7188ba452a
This commit is contained in:
A. Unique TensorFlower 2020-06-24 11:52:39 -07:00 committed by TensorFlower Gardener
parent ce0660bb29
commit ea7c98c040
4 changed files with 7 additions and 7 deletions

View File

@ -173,6 +173,7 @@ tf_cuda_library(
copts = tf_copts(),
visibility = [
"//tensorflow/c:__subpackages__",
"//tensorflow/python:__subpackages__",
"//third_party/llvm/llvm-project:__subpackages__",
],
deps = [

View File

@ -244,7 +244,6 @@ cc_library(
"//tensorflow:internal",
],
deps = [
"//tensorflow/c:c_api",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/platform:status",
],

View File

@ -15,7 +15,6 @@ limitations under the License.
#ifndef TENSORFLOW_C_EAGER_ABSTRACT_FUNCTION_H_
#define TENSORFLOW_C_EAGER_ABSTRACT_FUNCTION_H_
#include "tensorflow/c/c_api.h"
#include "tensorflow/core/framework/function.pb.h"
#include "tensorflow/core/platform/status.h"

View File

@ -558,7 +558,7 @@ cc_library(
deps = [
":bfloat16_lib",
":numpy_lib",
"//tensorflow/c:c_api",
"//tensorflow/c:c_api_no_xla",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
],
@ -997,11 +997,13 @@ tf_python_pybind_extension(
cc_library(
name = "safe_ptr",
srcs = ["lib/core/safe_ptr.cc"],
srcs = [
"lib/core/safe_ptr.cc",
"//tensorflow/c/eager:headers",
],
hdrs = ["lib/core/safe_ptr.h"],
deps = [
"//tensorflow/c:c_api",
"//tensorflow/c/eager:c_api",
"//tensorflow/c:c_api_no_xla",
"//third_party/python_runtime:headers",
],
)
@ -1046,7 +1048,6 @@ cc_library(
":ndarray_tensor_bridge",
":numpy_lib",
":safe_ptr",
"//tensorflow/c:c_api",
"//tensorflow/c:c_api_internal",
"//tensorflow/c:tf_status_helper",
"//tensorflow/c:tf_tensor_internal",