Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 652164801
  • Loading branch information
tensorflower-gardener committed Jul 14, 2024
1 parent 1c1cdf2 commit c22174d
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 13 deletions.
17 changes: 10 additions & 7 deletions tensorflow/cc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,13 @@ cc_library(
deps = [
":coordinator",
"//tensorflow/core:core_cpu",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/kernels:ops_util",
"@com_google_absl//absl/log",
"@com_google_absl//absl/status",
"@local_tsl//tsl/protobuf:error_codes_proto_impl_cc",
],
)

Expand All @@ -924,6 +927,7 @@ tf_cc_test(
deps = [
"coordinator",
":cc_ops",
":ops",
":queue_runner",
":scope",
"//tensorflow/core:core_cpu",
Expand All @@ -934,7 +938,7 @@ tf_cc_test(
"//tensorflow/core:tensorflow",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"@local_tsl//tsl/protobuf:error_codes_proto_impl_cc",
],
)

Expand All @@ -946,6 +950,8 @@ cc_library(
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc",
"@com_google_absl//absl/status",
"@local_tsl//tsl/protobuf:error_codes_proto_impl_cc",
],
)

Expand All @@ -955,17 +961,14 @@ tf_cc_test(
deps = [
":cc_ops",
":coordinator",
":queue_runner",
":scope",
"//tensorflow/core:core_cpu",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:tensorflow",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"@com_google_absl//absl/status",
"@local_tsl//tsl/protobuf:error_codes_proto_impl_cc",
],
)

Expand Down
6 changes: 6 additions & 0 deletions tensorflow/cc/training/coordinator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ limitations under the License.

#include "tensorflow/cc/training/coordinator.h"

#include "absl/status/status.h"
#include "tensorflow/core/framework/cost_graph.pb.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/status.h"
#include "tsl/protobuf/error_codes.pb.h"

namespace tensorflow {

Coordinator::Coordinator() : Coordinator(std::vector<error::Code>()) {}
Expand Down
3 changes: 3 additions & 0 deletions tensorflow/cc/training/coordinator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ limitations under the License.
#include <unordered_set>
#include <vector>

#include "absl/status/status.h"
#include "tensorflow/core/framework/cost_graph.pb.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/macros.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/protobuf/config.pb.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"
#include "tsl/platform/thread_annotations.h"
#include "tsl/protobuf/error_codes.pb.h"

namespace tensorflow {

Expand Down
8 changes: 5 additions & 3 deletions tensorflow/cc/training/coordinator_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ limitations under the License.

#include "tensorflow/cc/training/coordinator.h"

#include "tensorflow/cc/training/queue_runner.h"
#include "absl/status/status.h"
#include "tensorflow/core/lib/core/notification.h"
#include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/blocking_counter.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/threadpool.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"
#include "tensorflow/core/public/session.h"
#include "tsl/lib/core/status_test_util.h"
#include "tsl/protobuf/error_codes.pb.h"

namespace tensorflow {
namespace {
Expand Down
16 changes: 15 additions & 1 deletion tensorflow/cc/training/queue_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,22 @@ limitations under the License.
==============================================================================*/

#include "tensorflow/cc/training/queue_runner.h"
#include "tensorflow/core/kernels/ops_util.h"

#include "absl/log/log.h"
#include "absl/status/status.h"
#include "tensorflow/cc/training/coordinator.h"
#include "tensorflow/core/framework/cost_graph.pb.h"
#include "tensorflow/core/framework/ops_util.h"
#include "tensorflow/core/platform/blocking_counter.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/threadpool.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/protobuf/config.pb.h"
#include "tensorflow/core/protobuf/queue_runner.pb.h"
#include "tensorflow/core/public/session.h"
#include "tsl/protobuf/error_codes.pb.h"

namespace tensorflow {

Expand Down
2 changes: 2 additions & 0 deletions tensorflow/cc/training/queue_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ limitations under the License.
#include "tensorflow/core/lib/core/threadpool.h"
#include "tensorflow/core/platform/blocking_counter.h"
#include "tensorflow/core/platform/mutex.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/protobuf/config.pb.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"
#include "tensorflow/core/protobuf/queue_runner.pb.h"
#include "tensorflow/core/public/session.h"
#include "tsl/platform/thread_annotations.h"

namespace tensorflow {

Expand Down
15 changes: 13 additions & 2 deletions tensorflow/cc/training/queue_runner_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,31 @@ limitations under the License.
#include <string>
#include <vector>

#include "tensorflow/cc/framework/ops.h"
#include "tensorflow/cc/framework/scope.h"
#include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/cc/ops/const_op.h"
#include "tensorflow/cc/ops/data_flow_ops.h"
#include "tensorflow/cc/ops/math_ops.h"
#include "tensorflow/cc/ops/random_ops.h"
#include "tensorflow/cc/ops/state_ops.h"
#include "tensorflow/cc/training/coordinator.h"
#include "tensorflow/core/framework/cost_graph.pb.h"
#include "tensorflow/core/framework/graph.pb.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/notification.h"
#include "tensorflow/core/lib/core/status_test_util.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/protobuf/config.pb.h"
#include "tensorflow/core/protobuf/error_codes.pb.h"
#include "tensorflow/core/protobuf/queue_runner.pb.h"
#include "tensorflow/core/public/session.h"
#include "tensorflow/core/public/session_options.h"
#include "tsl/lib/core/status_test_util.h"
#include "tsl/platform/status.h"
#include "tsl/protobuf/error_codes.pb.h"

namespace tensorflow {
namespace {
Expand Down

0 comments on commit c22174d

Please sign in to comment.