Skip to content

Commit

Permalink
Update users of TSL headers and targets to new location in XLA
Browse files Browse the repository at this point in the history
Updating:
 - `env.h`
 - `env_time.h`
 - `errors.h`
 - `file_statistics.h`
 - `file_system.h`
 - `file_system_helper.h`
 - `logging.h`
 - `macros.h`
 - `status.h`
 - `status_matchers.h`
 - `status_to_from_proto.h`
 - `statusor.h`
 - `test.h`
 - `test_benchmark.h`
 - `threadpool.h`
 - `threadpool_async_executor.h`
 - `threadpool_interface.h`
 - `threadpool_options.h`
 - `types.h`

and associated targets.

PiperOrigin-RevId: 721169760
  • Loading branch information
ddunl authored and tensorflower-gardener committed Jan 30, 2025
1 parent 278d556 commit 531b3d9
Show file tree
Hide file tree
Showing 22 changed files with 61 additions and 61 deletions.
6 changes: 3 additions & 3 deletions tensorflow/compiler/mlir/quantization/stablehlo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,6 @@ tf_cc_test(
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:QuantOps",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla:error_spec",
"@local_xla//xla:literal",
"@local_xla//xla:literal_util",
Expand All @@ -419,6 +417,8 @@ tf_cc_test(
"@local_xla//xla/pjrt/plugin/xla_cpu:cpu_client_options",
"@local_xla//xla/pjrt/plugin/xla_cpu:xla_cpu_pjrt_client",
"@local_xla//xla/tests:literal_test_util",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
"@stablehlo//:chlo_ops",
],
)
Expand Down Expand Up @@ -466,7 +466,7 @@ tf_cc_test(
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down
42 changes: 21 additions & 21 deletions tensorflow/compiler/mlir/quantization/stablehlo/cc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ cc_library(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/strings:string_view",
"@local_tsl//tsl/platform:env",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:env",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand All @@ -82,10 +82,10 @@ tf_cc_test(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:env",
"@local_tsl//tsl/platform:status",
"@local_tsl//tsl/platform:status_matchers",
"@local_tsl//tsl/platform:types",
"@local_xla//xla/tsl/platform:env",
"@local_xla//xla/tsl/platform:status",
"@local_xla//xla/tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:types",
],
)

Expand Down Expand Up @@ -180,8 +180,8 @@ cc_library(
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand All @@ -203,8 +203,8 @@ tf_cc_test(
"@llvm-project//llvm:Support",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:protobuf",
"@local_tsl//tsl/platform:status_matchers",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -233,8 +233,8 @@ cc_library(
"@com_google_absl//absl/types:span",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -294,7 +294,7 @@ cc_library(
"@com_google_absl//absl/strings:string_view",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@local_tsl//tsl/platform:errors",
"@local_xla//xla/tsl/platform:errors",
],
)

Expand All @@ -314,7 +314,7 @@ tf_cc_test(
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:status_matchers",
],
)

Expand Down Expand Up @@ -354,7 +354,7 @@ tf_cc_test(
"@com_google_googletest//:gtest_main",
"@llvm-project//mlir:IR",
"@local_tsl//tsl/platform:protobuf",
"@local_tsl//tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:status_matchers",
],
)

Expand Down Expand Up @@ -388,8 +388,8 @@ cc_library(
"@com_google_absl//absl/strings:string_view",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@local_tsl//tsl/platform:errors",
"@local_xla//xla/mlir_hlo:mhlo_passes",
"@local_xla//xla/tsl/platform:errors",
],
)

Expand Down Expand Up @@ -437,8 +437,8 @@ cc_library(
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -472,8 +472,8 @@ cc_library(
"@com_google_absl//absl/strings:string_view",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/mlir_hlo:mhlo_passes",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ cc_library(
"@com_google_absl//absl/strings:string_view",
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:env",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:path",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:env",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -78,8 +78,8 @@ cc_library(
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:errors",
"@local_tsl//tsl/platform:statusor",
"@local_xla//xla/tsl/platform:errors",
"@local_xla//xla/tsl/platform:statusor",
],
)

Expand Down Expand Up @@ -110,7 +110,7 @@ tf_cc_test(
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_googletest//:gtest_main",
"@local_tsl//tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:status_matchers",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/exported_model.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
#include "tsl/platform/status_matchers.h"
#include "xla/tsl/platform/status_matchers.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h"
#include "xla/tsl/platform/statusor.h"
#include "tsl/platform/path.h"
#include "tsl/platform/statusor.h"

namespace stablehlo::quantization {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions tensorflow/compiler/mlir/quantization/stablehlo/cc/io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ limitations under the License.
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "tsl/platform/env.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"

namespace stablehlo::quantization::io {

Expand Down
4 changes: 2 additions & 2 deletions tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ limitations under the License.
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "tsl/platform/env.h"
#include "tsl/platform/errors.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/errors.h"

namespace stablehlo::quantization::io {

Expand Down
8 changes: 4 additions & 4 deletions tensorflow/compiler/mlir/quantization/stablehlo/cc/io_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ limitations under the License.
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "tsl/platform/env.h"
#include "tsl/platform/file_system.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/types.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/file_system.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/types.h"

namespace stablehlo::quantization::io {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/cc/run_passes.h"
#include "xla/mlir_hlo/mhlo/transforms/passes.h"
#include "tsl/platform/errors.h"
#include "xla/tsl/platform/errors.h"

namespace mlir::quant::stablehlo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/cc/run_passes.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
#include "tsl/platform/errors.h"
#include "xla/tsl/platform/errors.h"

namespace mlir::quant::stablehlo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/passes/tf_quant_ops.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
#include "tsl/platform/status_matchers.h"
#include "xla/tsl/platform/status_matchers.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/common/test_base.h"
#include "tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h"
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
#include "xla/tsl/platform/status_matchers.h"
#include "tsl/platform/protobuf.h" // IWYU pragma: keep
#include "tsl/platform/status_matchers.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ limitations under the License.
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
#include "tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.h"
#include "tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/framework/function.h"
#include "tensorflow/core/framework/function.pb.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/graph/graph.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/core/protobuf/saver.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ limitations under the License.
#include "mlir/IR/OwningOpRef.h" // from @llvm-project
#include "tensorflow/compiler/mlir/quantization/common/test_base.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/exported_model.pb.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/graph/graph.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/core/protobuf/saver.pb.h"
#include "tsl/platform/protobuf.h" // IWYU pragma: keep
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.h"
#include "tensorflow/compiler/mlir/tensorflow/translate/mlir_import_options.h"
#include "tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/exported_model.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/quantization_options.pb.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/framework/function.pb.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/core/protobuf/saver.pb.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/tensorflow/exported_model.pb.h"
#include "tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.h"
#include "xla/mlir_hlo/mhlo/transforms/passes.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ tf_cc_test(
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
"@local_tsl//tsl/platform:protobuf",
"@local_tsl//tsl/platform:status_matchers",
"@local_xla//xla/tsl/platform:status_matchers",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ limitations under the License.
#include "tensorflow/compiler/mlir/quantization/stablehlo/cc/io.h"
#include "tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.h"
#include "tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.pb.h"
#include "xla/tsl/platform/status_matchers.h"
#include "tsl/platform/protobuf.h" // IWYU pragma: keep
#include "tsl/platform/status_matchers.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ limitations under the License.
#include "xla/shape.h"
#include "xla/shape_util.h"
#include "xla/tests/literal_test_util.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ limitations under the License.
#include "tensorflow/compiler/mlir/register_common_dialects.h"
#include "tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.h"
#include "xla/tsl/lib/core/status_test_util.h"
#include "xla/tsl/platform/statusor.h"
#include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/lib/monitoring/cell_reader.h"
#include "tsl/platform/statusor.h"

namespace mlir::quant::stablehlo {
namespace {
Expand Down

0 comments on commit 531b3d9

Please sign in to comment.