aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/BUILD
diff options
context:
space:
mode:
authorGravatar Mark Heffernan <meheff@google.com>2018-10-02 13:08:39 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-02 13:13:22 -0700
commit78e4ce52aeda5a10ddaf5e64ea8958f439a2f9f2 (patch)
tree096cb5b28777e227053a50e622313cfe66e56744 /tensorflow/compiler/xla/service/BUILD
parent0a201955b47d484c6bfa149364c264a5b5f91be7 (diff)
Add proto serialization/deserialization testing to the HLO parser tests.
Many of the HLO parser tests verify that an text form of an HLO module preserves all information when running through ToString then parsing. It makes sense to also use these tests to exercise proto serialization/deserialization. This is done by adding additional instantiations of the parameterized parsing tests. This caught several bugs which are fixed in this CL: (1) Domain instructions were not being serialized properly. (2) Host send/recv instructions did not preserve the is_host_transfer bit. (3) Sparse literals could not be serialized or deserialized. PiperOrigin-RevId: 215445200
Diffstat (limited to 'tensorflow/compiler/xla/service/BUILD')
-rw-r--r--tensorflow/compiler/xla/service/BUILD20
1 files changed, 2 insertions, 18 deletions
diff --git a/tensorflow/compiler/xla/service/BUILD b/tensorflow/compiler/xla/service/BUILD
index 3f8b734afb..f329a27e14 100644
--- a/tensorflow/compiler/xla/service/BUILD
+++ b/tensorflow/compiler/xla/service/BUILD
@@ -300,6 +300,7 @@ cc_library(
"hlo_opcode.cc",
"hlo_schedule.cc",
"hlo_sharding.cc",
+ "hlo_sharding_metadata.cc",
],
hdrs = [
"dfs_hlo_visitor.h",
@@ -313,6 +314,7 @@ cc_library(
"hlo_opcode.h",
"hlo_schedule.h",
"hlo_sharding.h",
+ "hlo_sharding_metadata.h",
],
deps = [
":hlo_casting_utils",
@@ -2760,22 +2762,6 @@ cc_library(
)
cc_library(
- name = "hlo_sharding_metadata",
- srcs = ["hlo_sharding_metadata.cc"],
- hdrs = [
- "hlo_sharding_metadata.h",
- ],
- deps = [
- ":hlo",
- "//tensorflow/compiler/xla:shape_tree",
- "//tensorflow/compiler/xla:shape_util",
- "//tensorflow/core:lib",
- "@com_google_absl//absl/memory",
- "@com_google_absl//absl/types:span",
- ],
-)
-
-cc_library(
name = "hlo_domain_verifier",
srcs = ["hlo_domain_verifier.cc"],
hdrs = ["hlo_domain_verifier.h"],
@@ -2825,7 +2811,6 @@ tf_cc_test(
":hlo_domain_isolator",
":hlo_domain_remover",
":hlo_parser",
- ":hlo_sharding_metadata",
"//tensorflow/compiler/xla:test",
"//tensorflow/compiler/xla/legacy_flags:debug_options_flags",
"//tensorflow/compiler/xla/tests:hlo_test_base",
@@ -3441,7 +3426,6 @@ cc_library(
deps = [
":hlo",
":hlo_lexer",
- ":hlo_sharding_metadata",
"//tensorflow/compiler/xla:literal",
"//tensorflow/compiler/xla:literal_util",
"//tensorflow/compiler/xla:shape_util",