8000 Automated Code Change by copybara-service[bot] · Pull Request #93572 · tensorflow/tensorflow · GitHub
[go: up one dir, main page]

Skip to content

Automated Code Change #93572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions tensorflow/core/framework/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,12 @@ cc_library(
copts = tf_copts(),
visibility = ["//visibility:public"],
deps = [
":types_proto_cc",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:test",
"//testing/base/public:gunit_for_library_testonly",
"@com_google_absl//absl/log:check",
],
)

Expand Down Expand Up @@ -581,10 +584,14 @@ cc_library(
visibility = ["//tensorflow:internal"],
deps = [
":node_def_proto_cc",
":types_proto_cc",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:lib_internal",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
],
)

Expand Down Expand Up @@ -717,6 +724,12 @@ cc_library(
"//tensorflow/core/platform:status",
"//tensorflow/core/platform:statusor",
"//tensorflow/core/util:overflow",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@eigen_archive//:eigen3",
],
alwayslink = 1,
Expand Down Expand Up @@ -897,11 +910,14 @@ tf_cuda_library(
"//tensorflow/core/platform:tensor_coding",
"//tensorflow/core/platform:types",
"//tensorflow/core/public:version",
"//third_party/protobuf:protobuf_lite",
"@com_google_absl//absl/log",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/numeric:bits",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/types:span",
"@eigen_archive//:eigen3",
"@local_tsl//tsl/platform:ml_dtypes",
"@local_xla//xla/tsl/framework:device_type",
Expand All @@ -922,11 +938,18 @@ cc_library(
":op_def_proto_cc",
":tensor_shape",
":tensor_shape_proto_cc",
":types_proto_cc",
"//tensorflow/core/lib/core:errors",
"//tensorflow/core/lib/core:status",
"//tensorflow/core/platform:macros",
"//tensorflow/core/util:overflow",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:span",
],
)

Expand Down Expand Up @@ -1230,6 +1253,9 @@ tf_cuda_cc_test(
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"//tensorflow/core/kernels:array",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings",
"@eigen_archive//:eigen3",
],
)
Expand All @@ -1243,6 +1269,7 @@ tf_cc_test(
"//tensorflow/core:lib",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"@com_google_absl//absl/log",
],
)

Expand All @@ -1264,6 +1291,7 @@ tf_cc_test(
"//tensorflow/core/kernels:cwise_op",
"//tensorflow/core/kernels:matmul_op",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
"@com_google_absl//absl/synchronization",
"@eigen_archive//:eigen3",
],
Expand Down Expand Up @@ -1299,6 +1327,7 @@ tf_cc_test(
size = "small",
srcs = ["resource_var_test.cc"],
deps = [
":types_proto_cc",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:test",
Expand Down Expand Up @@ -1943,6 +1972,7 @@ tf_cc_fuzz_test(
deps = [
"//tensorflow/core:framework",
"//tensorflow/security/fuzzing/cc/core/framework:tensor_shape_domains",
"@com_google_absl//absl/status",
"@local_xla//xla/tsl/lib/core:status_test_util",
],
)
Expand All @@ -1957,6 +1987,7 @@ tf_cc_fuzz_test(
"//tensorflow/security/fuzzing/cc/core/framework:datatype_domains",
"//tensorflow/security/fuzzing/cc/core/framework:tensor_domains",
"//tensorflow/security/fuzzing/cc/core/framework:tensor_shape_domains",
"@com_google_absl//absl/status",
"@local_xla//xla/tsl/lib/core:status_test_util",
],
)
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/core/framework/resource_var.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ limitations under the License.

#include <string>

#include "absl/status/status.h"
#include "tensorflow/core/framework/resource_base.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/status.h"

// Forward declarations to avoid introducing a dependency on headers in
Expand Down
1 change: 1 addition & 0 deletions tensorflow/core/framework/resource_var_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.

#include "tensorflow/core/framework/resource_var.h"

#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/test.h"

Expand Down
18 changes: 15 additions & 3 deletions tensorflow/core/framework/run_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,28 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include <atomic>
#include <cfenv>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <string>
#include <utility>
#include <vector>

#include "base/tracer.h"
#include "absl/log/check.h"
#include "absl/log/log.h"
#include "tensorflow/core/protobuf/config.pb.h"
#define EIGEN_USE_THREADS

#include "tensorflow/core/framework/run_handler.h"

#include <algorithm>
#include <cmath>
#include <list>
#include <memory>

#include "unsupported/Eigen/CXX11/Tensor" // from @eigen_archive
#include "tensorflow/core/framework/run_handler.h"
#include "tensorflow/core/framework/run_handler_util.h"
#include "tensorflow/core/lib/core/threadpool_interface.h"
#include "tensorflow/core/lib/strings/strcat.h"
Expand Down
10 changes: 9 additions & 1 deletion tensorflow/core/framework/run_handler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include <atomic>
#include <cstdint>
#include <functional>
#include <initializer_list>
#include <utility>

#include "absl/status/status.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/protobuf/config.pb.h"
#define EIGEN_USE_THREADS

#include "tensorflow/core/framework/run_handler.h"
Expand All @@ -21,7 +30,6 @@ limitations under the License.
#include <vector>

#define EIGEN_USE_THREADS
#include "absl/memory/memory.h"
#include "absl/synchronization/barrier.h"
#include "unsupported/Eigen/CXX11/Tensor" // from @eigen_archive
#include "tensorflow/core/framework/graph.pb.h"
Expand Down
7 changes: 7 additions & 0 deletions tensorflow/core/framework/run_handler_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ limitations under the License.

#include "tensorflow/core/framework/run_handler_util.h"

#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <vector>

#include "absl/log/log.h"
#include "absl/strings/ascii.h"
#include "absl/strings/numbers.h"
#include "tensorflow/core/lib/strings/numbers.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/str_util.h"
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/core/framework/run_handler_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ limitations under the License.

#include "tensorflow/core/framework/run_handler_util.h"

#include <cstdint>
#include <vector>

#include "absl/log/log.h"
#include "tensorflow/core/lib/strings/strcat.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/logging.h"
Expand Down
15 changes: 14 additions & 1 deletion tensorflow/core/framework/shape_inference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,27 @@ limitations under the License.
==============================================================================*/
#include "tensorflow/core/framework/shape_inference.h"

#include <algorithm>
#include <cstdint>
#include <functional>
#include <initializer_list>
#include <limits>
#include <memory>

#include <utility>
#include <vector>

#include "absl/log/check.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 "tensorflow/core/framework/bounds_check.h"
#include "tensorflow/core/framework/full_type_util.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/framework/partial_tensor_shape.h"
#include "tensorflow/core/framework/tensor_shape.pb.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/util/overflow.h"

Expand Down
6 changes: 6 additions & 0 deletions tensorflow/core/framework/shape_inference.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ limitations under the License.

#include <vector>

#include "absl/log/check.h"
#include "absl/memory/memory.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "tensorflow/core/framework/full_type.pb.h"
#include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/macros.h"
Expand Down
11 changes: 11 additions & 0 deletions tensorflow/core/framework/shape_inference_test.cc
10000
Original file line numberDiff line number Diff line change
Expand Up @@ -14,11 +14,22 @@ limitations under the License.
==============================================================================*/
#include "tensorflow/core/framework/shape_inference.h"

#include <algorithm>
#include <cstdint>
#include <initializer_list>
#include <limits>
#include <string>
#include <vector>

#include <gmock/gmock.h>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "xla/tsl/protobuf/error_codes.pb.h"
#include "tensorflow/core/framework/fake_input.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/node_def_builder.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/framework/op_def_builder.h"
#include "tensorflow/core/framework/tensor_shape.pb.h"
#include "tensorflow/core/framework/tensor_testutil.h"
Expand Down
7 changes: 7 additions & 0 deletions tensorflow/core/framework/shape_inference_testutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ limitations under the License.
#include "tensorflow/core/framework/shape_inference_testutil.h"

#include <algorithm>
#include <cstdint>
#include <memory>
#include <utility>
#include <vector>

#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"
#include "absl/strings/string_view.h"
#include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/lib/gtl/map_util.h"
Expand Down
1 change: 1 addition & 0 deletions tensorflow/core/framework/shape_inference_testutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ limitations under the License.
#include "absl/status/status.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/public/version.h"
Expand Down
6 changes: 6 additions & 0 deletions tensorflow/core/framework/shape_inference_testutil_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ limitations under the License.

#include "tensorflow/core/framework/shape_inference_testutil.h"

#include <algorithm>
#include <string>
#include <vector>

#include "absl/status/status.h"
#include "absl/strings/match.h"
#include "tensorflow/core/framework/node_def.pb.h"
#include "tensorflow/core/framework/node_def_builder.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/test.h"

Expand Down
4 changes: 4 additions & 0 deletions tensorflow/core/framework/tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ limitations under the License.
#include <utility>

#include "absl/log/check.h"
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "absl/strings/escaping.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "third_party/protobuf/repeated_ptr_field.h"
#include "xla/tsl/util/byte_swap_array.h"
#include "tensorflow/core/framework/allocation_description.pb.h"
#include "tensorflow/core/framework/log_memory.h"
Expand Down
1 change: 1 addition & 0 deletions tensorflow/core/framework/tensor_fuzz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "fuzztest/fuzztest.h"
#include "absl/status/status.h"
#include "xla/tsl/lib/core/status_test_util.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor.pb.h"
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/core/framework/tensor_matcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ limitations under the License.

#include <stdint.h>

#include <complex>
#include <ostream>
#include <string>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
Expand Down
11 changes: 11 additions & 0 deletions tensorflow/core/framework/tensor_shape.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,19 @@ limitations under the License.

#include "tensorflow/core/framework/tensor_shape.h"

#include <cstddef>
#include <cstdint>
#include <cstring>
#include <limits>

#include "absl/container/inlined_vector.h"
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/strings/str_join.h"
#include "absl/types/span.h"
#include "tensorflow/core/framework/bounds_check.h"
#include "tensorflow/core/framework/tensor_shape.pb.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/lib/strings/strcat.h"
#include "tensorflow/core/platform/errors.h"
Expand Down
4 changes: 4 additions & 0 deletions tensorflow/core/framework/tensor_shape.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ limitations under the License.

#include <string>

#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/types/span.h"
#include "unsupported/Eigen/CXX11/Tensor" // from @eigen_archive
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/gtl/array_slice.h"
Expand Down
Loading
0