Remove references to tf_proto_library in TF.

Merge all language specific proto libraries into just tf_proto_library.

PiperOrigin-RevId: 333400278
Change-Id: Ic891331668db3e562d42805295eade90fd017e91
This commit is contained in:
Gunhan Gulsoy 2020-09-23 16:46:39 -07:00 committed by TensorFlower Gardener
parent 055855171b
commit b5548734b9
4 changed files with 10 additions and 43 deletions
tensorflow/compiler
tf2xla
xla
BUILD
service
xrt

View File

@ -8,7 +8,6 @@ load(
"//tensorflow/core/platform:build_config.bzl",
"tf_additional_tensor_coding_deps",
"tf_proto_library",
"tf_proto_library_cc",
)
load("//tensorflow/compiler/xla:xla.bzl", "xla_py_proto_library")
@ -105,7 +104,7 @@ xla_py_proto_library(
deps = [":tf2xla_proto"],
)
tf_proto_library_cc(
tf_proto_library(
name = "host_compute_metadata_proto",
srcs = ["host_compute_metadata.proto"],
cc_api_version = 2,

View File

@ -3,8 +3,7 @@ load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
load("//tensorflow:tensorflow.bzl", "cc_header_only_library", "tf_cc_test")
load(
"//tensorflow/core/platform:build_config.bzl",
"tf_proto_library_cc",
"tf_proto_library_py",
"tf_proto_library",
)
package(
@ -57,20 +56,14 @@ filegroup(
visibility = [":friends"],
)
tf_proto_library_cc(
tf_proto_library(
name = "xla_data_proto",
srcs = ["xla_data.proto"],
cc_api_version = 2,
visibility = ["//visibility:public"],
)
tf_proto_library_py(
name = "xla_data_proto", # bzl adds a _py suffix
srcs = ["xla_data.proto"],
visibility = ["//visibility:public"],
)
tf_proto_library_cc(
tf_proto_library(
name = "xla_proto",
srcs = ["xla.proto"],
cc_api_version = 2,
@ -81,16 +74,6 @@ tf_proto_library_cc(
visibility = ["//visibility:public"],
)
tf_proto_library_py(
name = "xla_proto", # bzl adds a _py suffix
srcs = ["xla.proto"],
visibility = ["//visibility:public"],
deps = [
":xla_data_proto_py",
"//tensorflow/compiler/xla/service:hlo_proto_py",
],
)
cc_library(
name = "bit_cast",
hdrs = ["bit_cast.h"],

View File

@ -5,8 +5,7 @@ load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
load("//tensorflow/compiler/xla/tests:build_defs.bzl", "xla_test")
load(
"//tensorflow/core/platform:build_config.bzl",
"tf_proto_library_cc",
"tf_proto_library_py",
"tf_proto_library",
)
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
@ -37,7 +36,7 @@ package_group(
packages = ["//learning/brain/experimental/tf_runtime/..."],
)
tf_proto_library_cc(
tf_proto_library(
name = "hlo_proto",
srcs = ["hlo.proto"],
cc_api_version = 2,
@ -45,20 +44,13 @@ tf_proto_library_cc(
visibility = ["//visibility:public"],
)
tf_proto_library_py(
name = "hlo_proto", # bzl adds a _py suffix only to the OSS target.
srcs = ["hlo.proto"],
visibility = ["//visibility:public"],
deps = ["//tensorflow/compiler/xla:xla_data_proto_py"],
)
tf_proto_library_cc(
tf_proto_library(
name = "hlo_profile_printer_data",
srcs = ["hlo_profile_printer_data.proto"],
cc_api_version = 2,
)
tf_proto_library_cc(
tf_proto_library(
name = "hlo_execution_profile_data",
srcs = ["hlo_execution_profile_data.proto"],
cc_api_version = 2,

View File

@ -9,8 +9,7 @@ load(
load("//tensorflow:tensorflow.bzl", "tf_gen_op_libs")
load(
"//tensorflow/core/platform:build_config.bzl",
"tf_proto_library_cc",
"tf_proto_library_py",
"tf_proto_library",
)
package(
@ -21,7 +20,7 @@ package(
licenses = ["notice"], # Apache 2.0
)
tf_proto_library_cc(
tf_proto_library(
name = "xrt_proto",
srcs = ["xrt.proto"],
cc_api_version = 2,
@ -34,12 +33,6 @@ tf_proto_library_cc(
visibility = ["//visibility:public"],
)
tf_proto_library_py(
name = "xrt_proto", # bzl adds a _py suffix
srcs = ["xrt.proto"],
visibility = ["//visibility:public"],
)
cc_library(
name = "xrt_utils",
srcs = [