aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/plugin
diff options
context:
space:
mode:
authorGravatar Kay Zhu <kayzhu@google.com>2018-01-18 11:30:02 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-18 11:33:13 -0800
commitcfaaace259a60a605e2abef535b0109f0d67fcd5 (patch)
treefeddc9796b8261c95506a463766f8c6ade5d8d1b /tensorflow/compiler/plugin
parent32827caf64b06eed15aac5f8f74067de9ee21425 (diff)
[TF:JIT] Make :xla_device visible to public, which is necessary for 3rd party
to use XLA. Also add a build target to tf/compiler/plugin/BUILD that depends on :xla_device to help ensure it stays visible to public. PiperOrigin-RevId: 182410844
Diffstat (limited to 'tensorflow/compiler/plugin')
-rw-r--r--tensorflow/compiler/plugin/BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/compiler/plugin/BUILD b/tensorflow/compiler/plugin/BUILD
index c1edf2448c..da4bc44c7a 100644
--- a/tensorflow/compiler/plugin/BUILD
+++ b/tensorflow/compiler/plugin/BUILD
@@ -41,6 +41,15 @@ cc_library(
],
)
+# This target is added purely for the purpose of ensuring that `:xla_device` is
+# always publicly visible to external XLA backend/plugin developers.
+cc_library(
+ name = "plugin_device",
+ deps = [
+ "//tensorflow/compiler/jit:xla_device",
+ ],
+)
+
#-----------------------------------------------------------------------------
filegroup(