Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 712732982
  • Loading branch information
Google-ML-Automation committed Jan 7, 2025
1 parent d28bfbd commit fa9ae2c
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xla/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ cc_library(
"//xla:shape_util",
"//xla:status_macros",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/pjrt:exceptions",
"//xla/pjrt:pjrt_client",
"//xla/pjrt:pjrt_common",
Expand All @@ -549,6 +550,8 @@ cc_library(
"//xla/python/ifrt",
"//xla/python/pjrt_ifrt",
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
Expand Down Expand Up @@ -623,6 +626,7 @@ cc_library(
deps = [
"//xla:debug_options_flags",
"//xla:util",
"//xla:xla_data_proto_cc",
"//xla/hlo/builder:xla_computation",
"//xla/hlo/ir:hlo",
"//xla/hlo/pass:hlo_pass_pipeline",
Expand Down Expand Up @@ -661,6 +665,7 @@ cc_library(
# placeholder for index annotation deps
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@nanobind",
"//xla:shape_util",
"//xla:util",
Expand Down Expand Up @@ -874,6 +879,7 @@ cc_library(
# placeholder for index annotation deps
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:span",
"@nanobind",
Expand Down Expand Up @@ -1512,6 +1518,7 @@ xla_cc_test(
deps = [
":aggregate_profile",
"@com_google_absl//absl/types:span",
"@com_google_googletest//:gtest",
"@tsl//tsl/platform:test",
"@tsl//tsl/platform:test_main",
"@tsl//tsl/profiler/protobuf:profiled_instructions_proto_cc",
Expand Down
1 change: 1 addition & 0 deletions xla/python/aggregate_profile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.
#include "absl/container/flat_hash_map.h"
#include "absl/types/span.h"
#include "xla/python/xplane_to_profile_instructions.h"
#include "tsl/profiler/protobuf/profiled_instructions.pb.h"

namespace xla {

Expand Down
1 change: 1 addition & 0 deletions xla/python/aggregate_profile_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ limitations under the License.
#include <string>
#include <vector>

#include <gtest/gtest.h>
#include "absl/types/span.h"
#include "tsl/platform/test.h"
#include "tsl/profiler/protobuf/profiled_instructions.pb.h"
Expand Down
1 change: 1 addition & 0 deletions xla/python/callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ limitations under the License.
#include "xla/python/nb_numpy.h"
#include "xla/python/python_ref_manager.h"
#include "xla/service/custom_call_status.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/statusor.h"

namespace nb = nanobind;
Expand Down
2 changes: 2 additions & 0 deletions xla/python/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ limitations under the License.
#include <utility>
#include <vector>

#include "absl/base/thread_annotations.h"
#include "absl/container/flat_hash_set.h"
#include "absl/log/check.h"
#include "absl/synchronization/mutex.h"
#include "absl/types/span.h"
#include "nanobind/nanobind.h"
Expand Down
1 change: 1 addition & 0 deletions xla/python/custom_call_sharding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ limitations under the License.

#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "nanobind/nanobind.h"
#include "nanobind/stl/optional.h" // IWYU pragma: keep
#include "nanobind/stl/string.h" // IWYU pragma: keep
Expand Down
1 change: 1 addition & 0 deletions xla/python/custom_partition_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ limitations under the License.
#include "xla/service/custom_call_sharding_helper.h"
#include "xla/service/spmd/spmd_partitioner.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status.h"
#include "tsl/platform/statusor.h"
Expand Down
3 changes: 3 additions & 0 deletions xla/python/custom_partition_callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ limitations under the License.
#include <optional>
#include <string>
#include <tuple>
#include <vector>

#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "xla/hlo/ir/hlo_instruction.h"
#include "xla/hlo/ir/hlo_sharding.h"
#include "xla/pjrt/c/pjrt_c_api.h"
Expand Down
4 changes: 4 additions & 0 deletions xla/python/dlpack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ limitations under the License.
#include <vector>

#include "absl/algorithm/container.h"
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_join.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "include/dlpack/dlpack.h"
#include "llvm/Support/Casting.h"
Expand All @@ -55,6 +58,7 @@ limitations under the License.
#include "xla/shape_util.h"
#include "xla/status_macros.h"
#include "xla/util.h"
#include "xla/xla_data.pb.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/statusor.h"
Expand Down
1 change: 1 addition & 0 deletions xla/python/dlpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ limitations under the License.
#include "xla/python/ifrt/device.h"
#include "xla/python/nb_class_ptr.h"
#include "xla/python/py_client.h"
#include "xla/xla_data.pb.h"

namespace xla {

Expand Down

0 comments on commit fa9ae2c

Please sign in to comment.