Skip to content

Commit

Permalink
Fix import-related lint errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 630137431
  • Loading branch information
michaelreneer authored and tensorflow-copybara committed May 2, 2024
1 parent f959b64 commit be1c547
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 29 deletions.
12 changes: 6 additions & 6 deletions tensorflow_federated/cc/core/impl/aggregation/tensorflow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ cc_test(
"//tensorflow_federated/cc/core/impl/aggregation/testing:test_data",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:string_view",
"@org_tensorflow//tensorflow/core:framework",
"@org_tensorflow//tensorflow/core:protos_all_cc",
"@org_tensorflow//tensorflow/core/platform:tstring",
Expand All @@ -65,8 +66,8 @@ cc_library(
"//tensorflow_federated/cc/core/impl/aggregation/base",
"//tensorflow_federated/cc/core/impl/aggregation/core:tensor",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@org_tensorflow//tensorflow/c:checkpoint_reader",
"@org_tensorflow//tensorflow/c:tf_status_headers",
Expand All @@ -83,6 +84,7 @@ cc_test(
":checkpoint_reader",
"//tensorflow_federated/cc/common_libs:oss_test_main",
"//tensorflow_federated/cc/core/impl/aggregation/base",
"//tensorflow_federated/cc/core/impl/aggregation/core:tensor",
"//tensorflow_federated/cc/core/impl/aggregation/testing",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
"@com_google_absl//absl/strings",
Expand Down Expand Up @@ -112,7 +114,6 @@ cc_test(
"//tensorflow_federated/cc/core/impl/aggregation/core:tensor",
"//tensorflow_federated/cc/core/impl/aggregation/testing",
"//tensorflow_federated/cc/core/impl/aggregation/testing:test_data",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
],
)

Expand All @@ -131,7 +132,7 @@ cc_library(
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:cord",
"@org_tensorflow//tensorflow/core/platform:env",
"@org_tensorflow//tensorflow/core/platform:status",
"@org_tensorflow//tensorflow/tsl/platform:env",
],
)

Expand All @@ -142,9 +143,9 @@ cc_test(
":tensorflow_checkpoint_builder_factory",
"//tensorflow_federated/cc/common_libs:oss_test_main",
"//tensorflow_federated/cc/core/impl/aggregation/core:tensor",
"//tensorflow_federated/cc/core/impl/aggregation/protocol:checkpoint_builder",
"//tensorflow_federated/cc/core/impl/aggregation/testing",
"//tensorflow_federated/cc/core/impl/aggregation/testing:test_data",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:cord",
Expand All @@ -162,11 +163,11 @@ cc_library(
"//tensorflow_federated/cc/core/impl/aggregation/protocol:checkpoint_parser",
"@com_google_absl//absl/cleanup",
"@com_google_absl//absl/random",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:cord",
"@org_tensorflow//tensorflow/core/platform:env",
"@org_tensorflow//tensorflow/tsl/platform:env",
],
)

Expand All @@ -179,7 +180,6 @@ cc_test(
"//tensorflow_federated/cc/core/impl/aggregation/base",
"//tensorflow_federated/cc/core/impl/aggregation/protocol:checkpoint_parser",
"//tensorflow_federated/cc/core/impl/aggregation/testing",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:cord",
"@org_tensorflow//tensorflow/cc:cc_ops",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "tensorflow/c/checkpoint_reader.h"
#include "tensorflow/c/tf_status.h"
#include "tensorflow/c/tf_status_helper.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/monitoring.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/datatype.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/converters.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "absl/container/flat_hash_map.h"
#include "absl/status/statusor.h"
#include "tensorflow/c/checkpoint_reader.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/datatype.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor_shape.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@

#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/checkpoint_reader.h"

#include <cstddef>
#include <cstdint>
#include <initializer_list>
#include <memory>
#include <utility>

#include "googlemock/include/gmock/gmock.h"
#include "googletest/include/gtest/gtest.h"
#include "absl/strings/string_view.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/monitoring.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/platform.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/datatype.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/testing.h"
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <cstdint>
#include <utility>
#include <vector>

#include "googlemock/include/gmock/gmock.h"
#include "googletest/include/gtest/gtest.h"
Expand All @@ -28,7 +27,6 @@
#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/checkpoint_reader.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/test_data.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/testing.h"
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

namespace tensorflow_federated::aggregation::tensorflow {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/protobuf/struct.pb.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/monitoring.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/datatype.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor_shape.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor_spec.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@

#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/converters.h"

#include <cstdint>
#include <initializer_list>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

// clang-format off
#include "tensorflow_federated/cc/core/impl/aggregation/testing/parse_text_proto.h"
// clang-format on
Expand All @@ -44,6 +43,7 @@
#include "tensorflow_federated/cc/core/impl/aggregation/core/vector_string_data.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/test_data.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/testing.h"
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

namespace tensorflow_federated::aggregation::tensorflow {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ pybind_extension(
"//tensorflow_federated/cc/core/impl/aggregation/protocol/simple_aggregation",
"//tensorflow_federated/cc/core/impl/aggregation/tensorflow:tensorflow_checkpoint_builder_factory",
"//tensorflow_federated/cc/core/impl/aggregation/tensorflow:tensorflow_checkpoint_parser_factory",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings:cord",
"@pybind11_abseil//pybind11_abseil:status_casters",
"@pybind11_protobuf//pybind11_protobuf:native_proto_caster",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@

#include <pybind11/pybind11.h>

#include <cstdint>
#include <memory>
#include <string>

#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/cord.h"
#include "pybind11_abseil/status_casters.h"
#include "pybind11_protobuf/native_proto_caster.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/aggregation_protocol.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/configuration.pb.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/resource_resolver.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/simple_aggregation/simple_aggregation_protocol.h"
#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/tensorflow_checkpoint_builder_factory.h"
#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/tensorflow_checkpoint_parser_factory.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
#include "absl/strings/cord.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/tsl/platform/env.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/monitoring.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/checkpoint_builder.h"
Expand All @@ -39,7 +38,7 @@
namespace tensorflow_federated::aggregation::tensorflow {
namespace {

using ::tensorflow::Env;
using tsl::Env;

// A CheckpointBuilder implementation that builds TensorFlow checkpoints using a
// CheckpointWriter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/tensorflow_checkpoint_builder_factory.h"

#include <cstdint>
#include <memory>
#include <string>

#include "googlemock/include/gmock/gmock.h"
#include "googletest/include/gtest/gtest.h"
Expand All @@ -27,9 +27,9 @@
#include "tensorflow_federated/cc/core/impl/aggregation/core/mutable_vector_data.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor_shape.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/checkpoint_builder.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/test_data.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/testing.h"
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

namespace tensorflow_federated::aggregation::tensorflow {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@

#include "tensorflow_federated/cc/core/impl/aggregation/tensorflow/tensorflow_checkpoint_parser_factory.h"

#include <stdint.h>

#include <cstdint>
#include <limits>
#include <memory>
#include <string>
#include <utility>

#include "absl/cleanup/cleanup.h"
#include "absl/random/random.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/cord.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/tsl/platform/env.h"
#include "tensorflow_federated/cc/core/impl/aggregation/base/monitoring.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/checkpoint_parser.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <memory>
#include <string>
#include <utility>

#include "googlemock/include/gmock/gmock.h"
#include "googletest/include/gtest/gtest.h"
Expand All @@ -27,7 +26,6 @@
#include "tensorflow_federated/cc/core/impl/aggregation/base/platform.h"
#include "tensorflow_federated/cc/core/impl/aggregation/protocol/checkpoint_parser.h"
#include "tensorflow_federated/cc/core/impl/aggregation/testing/testing.h"
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"

namespace tensorflow_federated::aggregation::tensorflow {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cc_library(
"//tensorflow_federated/cc/core/impl/aggregation/base",
"//tensorflow_federated/cc/core/impl/aggregation/core:intrinsic",
"//tensorflow_federated/cc/core/impl/aggregation/core:tensor",
"//tensorflow_federated/cc/core/impl/executors:status_matchers",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
#include "tensorflow_federated/cc/core/impl/aggregation/core/intrinsic.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor.h"
#include "tensorflow_federated/cc/core/impl/aggregation/core/tensor_shape.h"
// clang-format off
#include "tensorflow_federated/cc/core/impl/executors/status_matchers.h"
// clang-format on

namespace tensorflow_federated::aggregation {

Expand Down

0 comments on commit be1c547

Please sign in to comment.