From c28d1fde545c6b9d79ff0de5295a1613b1b032b0 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 20 Oct 2026 20:33:33 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 1003612014 --- tensorflow/core/kernels/image/BUILD | 10 ++++++++-- tensorflow/core/kernels/image/adjust_contrast_op.cc | 11 +++++++---- .../core/kernels/image/extract_volume_patches_op.cc | 4 ++++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/tensorflow/core/kernels/image/BUILD b/tensorflow/core/kernels/image/BUILD index edc34f7e910..a962529da26 100644 --- a/tensorflow/core/kernels/image/BUILD +++ b/tensorflow/core/kernels/image/BUILD @@ -175,7 +175,12 @@ IMAGE_TEST_DEPS = [ tf_kernel_library( name = "adjust_contrast_op", prefix = "adjust_contrast_op", - deps = IMAGE_DEPS + ["//tensorflow/core/util:determinism_for_kernels"], + deps = IMAGE_DEPS + [ + "//tensorflow/core/util:determinism_for_kernels", + "@com_google_absl//absl/log:check", + "@com_google_absl//absl/status", + "@com_google_absl//absl/strings", + ], ) cc_library( @@ -303,9 +308,10 @@ tf_kernel_library( deps = [ "//tensorflow/core:framework", "//tensorflow/core:lib", - "//tensorflow/core/kernels:eigen_helpers", "//tensorflow/core/kernels:ops_util", "//tensorflow/core/util:overflow", + "@com_google_absl//absl/status", + "@com_google_absl//absl/strings", "@eigen_archive//:eigen3", ], ) diff --git a/tensorflow/core/kernels/image/adjust_contrast_op.cc b/tensorflow/core/kernels/image/adjust_contrast_op.cc index b9740a473e8..5770a94dca7 100644 --- a/tensorflow/core/kernels/image/adjust_contrast_op.cc +++ b/tensorflow/core/kernels/image/adjust_contrast_op.cc @@ -14,18 +14,21 @@ limitations under the License. ==============================================================================*/ // See docs in ../ops/image_ops.cc +#include +#include + +#include "absl/log/check.h" +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #define EIGEN_USE_THREADS -#include "tensorflow/core/kernels/image/adjust_contrast_op.h" - -#include - #include "unsupported/Eigen/CXX11/Tensor" // from @eigen_archive #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/register_types.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/types.h" +#include "tensorflow/core/kernels/image/adjust_contrast_op.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/util/determinism.h" diff --git a/tensorflow/core/kernels/image/extract_volume_patches_op.cc b/tensorflow/core/kernels/image/extract_volume_patches_op.cc index 8b4c17f5cb4..200d1e5c170 100644 --- a/tensorflow/core/kernels/image/extract_volume_patches_op.cc +++ b/tensorflow/core/kernels/image/extract_volume_patches_op.cc @@ -21,6 +21,10 @@ Rates are not supported as of now, but the comments hint how to edit the code when rates are to be added. */ +#include + +#include "absl/status/status.h" +#include "absl/strings/str_cat.h" #define USE_EIGEN_TENSOR #define EIGEN_USE_THREADS