From f4491aafdb1227a692208eb449000913d44a9e97 Mon Sep 17 00:00:00 2001 From: Sandeep Dasgupta Date: Mon, 30 Sep 2024 15:38:16 -0700 Subject: [PATCH] [HLO Componentization] Create hlo/builder sub-component (Phase II). This CL takes care of 1. Migrating external projects dependencies from xla/client --> xla/hlo/builder Phase I takes care of 1. Migrating xla/translate --> xla/hlo/translate 2. Setting up build aliases in xla/translate ensuring external dependencies are still satisfied. PiperOrigin-RevId: 680744569 --- tensorflow_federated/cc/core/impl/executors/BUILD | 10 +++++----- .../cc/core/impl/executors/xla_executor.cc | 2 +- .../cc/core/impl/executors/xla_executor_test.cc | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tensorflow_federated/cc/core/impl/executors/BUILD b/tensorflow_federated/cc/core/impl/executors/BUILD index 57f1c05d7c..9c8a2be56d 100644 --- a/tensorflow_federated/cc/core/impl/executors/BUILD +++ b/tensorflow_federated/cc/core/impl/executors/BUILD @@ -1150,7 +1150,7 @@ cc_library( "@org_tensorflow//tensorflow/compiler/xla:xla_proto_cc", "@org_tensorflow//tensorflow/compiler/xla/client", "@org_tensorflow//tensorflow/compiler/xla/client:client_library", - "@org_tensorflow//tensorflow/compiler/xla/client:xla_computation", + "@org_tensorflow//tensorflow/compiler/xla/hlo/builder:xla_computation", "@org_tensorflow//tensorflow/compiler/xla/service", "@org_tensorflow//tensorflow/compiler/xla/service:hlo_proto_cc", "@org_tensorflow//tensorflow/compiler/xla/stream_executor", @@ -1187,8 +1187,8 @@ tff_cc_cpu_gpu_test( "@org_tensorflow//tensorflow/compiler/tf2xla:common", "@org_tensorflow//tensorflow/compiler/xla:shape_util", "@org_tensorflow//tensorflow/compiler/xla:xla_data_proto_cc", - "@org_tensorflow//tensorflow/compiler/xla/client:xla_builder", - "@org_tensorflow//tensorflow/compiler/xla/client:xla_computation", + "@org_tensorflow//tensorflow/compiler/xla/hlo/builder:xla_builder", + "@org_tensorflow//tensorflow/compiler/xla/hlo/builder:xla_computation", "@org_tensorflow//tensorflow/compiler/xla/service:platform_util", "@org_tensorflow//tensorflow/compiler/xla/stream_executor", "@org_tensorflow//tensorflow/core:framework", @@ -1225,8 +1225,8 @@ cc_test( "@org_tensorflow//tensorflow/compiler/tf2xla:common", "@org_tensorflow//tensorflow/compiler/xla:shape_util", "@org_tensorflow//tensorflow/compiler/xla:xla_data_proto_cc", - "@org_tensorflow//tensorflow/compiler/xla/client:xla_builder", - "@org_tensorflow//tensorflow/compiler/xla/client:xla_computation", + "@org_tensorflow//tensorflow/compiler/xla/hlo/builder:xla_builder", + "@org_tensorflow//tensorflow/compiler/xla/hlo/builder:xla_computation", "@org_tensorflow//tensorflow/compiler/xla/service:platform_util", "@org_tensorflow//tensorflow/compiler/xla/stream_executor", "@org_tensorflow//tensorflow/compiler/xla/stream_executor/cuda:cuda_platform", # buildcleaner: keep # Linking in the host platform here ensures that the stream executor can execute on GPU. diff --git a/tensorflow_federated/cc/core/impl/executors/xla_executor.cc b/tensorflow_federated/cc/core/impl/executors/xla_executor.cc index 757c8e8d3b..28b5f86b77 100644 --- a/tensorflow_federated/cc/core/impl/executors/xla_executor.cc +++ b/tensorflow_federated/cc/core/impl/executors/xla_executor.cc @@ -35,7 +35,7 @@ limitations under the License #include "tensorflow/compiler/tf2xla/type_util.h" #include "tensorflow/compiler/xla/client/client.h" #include "tensorflow/compiler/xla/client/client_library.h" -#include "tensorflow/compiler/xla/client/xla_computation.h" +#include "tensorflow/compiler/xla/hlo/builder/xla_computation.h" #include "tensorflow/compiler/xla/literal.h" #include "tensorflow/compiler/xla/service/hlo.pb.h" #include "tensorflow/compiler/xla/service/service.h" diff --git a/tensorflow_federated/cc/core/impl/executors/xla_executor_test.cc b/tensorflow_federated/cc/core/impl/executors/xla_executor_test.cc index 7150bad17a..e693446743 100644 --- a/tensorflow_federated/cc/core/impl/executors/xla_executor_test.cc +++ b/tensorflow_federated/cc/core/impl/executors/xla_executor_test.cc @@ -32,8 +32,8 @@ limitations under the License #include "absl/status/statusor.h" #include "tensorflow/compiler/tf2xla/shape_util.h" #include "tensorflow/compiler/tf2xla/type_util.h" -#include "tensorflow/compiler/xla/client/xla_builder.h" -#include "tensorflow/compiler/xla/client/xla_computation.h" +#include "tensorflow/compiler/xla/hlo/builder/xla_builder.h" +#include "tensorflow/compiler/xla/hlo/builder/xla_computation.h" #include "tensorflow/compiler/xla/service/platform_util.h" #include "tensorflow/compiler/xla/shape.h" #include "tensorflow/compiler/xla/shape_util.h"