Skip to content
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

Automated Code Change #67380

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
1 change: 1 addition & 0 deletions tensorflow/compiler/mlir/tools/kernel_gen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ tf_cc_binary(
"//tensorflow/compiler/mlir/tools/kernel_gen/transforms:passes",
"@llvm-project//mlir:AllPassesAndDialects",
"@llvm-project//mlir:MlirOptLib",
"@llvm-project//mlir:Support",
"@local_xla//xla/mlir_hlo:all_passes",
"@local_xla//xla/mlir_hlo:hlo_dialect_registration",
"@stablehlo//:register",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.

#include "mlir/InitAllDialects.h" // from @llvm-project
#include "mlir/InitAllPasses.h" // from @llvm-project
#include "mlir/Support/LogicalResult.h" // from @llvm-project
#include "mlir/Tools/mlir-opt/MlirOptMain.h" // from @llvm-project
#include "stablehlo/dialect/Register.h" // from @stablehlo
#include "tensorflow/compiler/mlir/tensorflow/dialect_registration.h"
Expand Down
5 changes: 5 additions & 0 deletions tensorflow/java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ tf_cc_binary(
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
"//tensorflow/core:ops",
"//tensorflow/core:protos_all_cc",
"@com_google_absl//absl/log:check",
"@local_tsl//tsl/platform:status",
],
)

Expand All @@ -133,6 +136,8 @@ cc_library(
"//tensorflow/core:lib_internal",
"//tensorflow/core:op_gen_lib",
"//tensorflow/core:protos_all_cc",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/strings",
"@com_googlesource_code_re2//:re2",
],
)
Expand Down
6 changes: 4 additions & 2 deletions tensorflow/java/src/gen/cc/op_gen_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
#include <string>
#include <vector>

#include "absl/log/check.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/init_main.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/core/util/command_line_flags.h"
#include "tensorflow/java/src/gen/cc/op_generator.h"
#include "tsl/platform/status.h"

namespace tensorflow {
namespace java {
Expand Down
12 changes: 9 additions & 3 deletions tensorflow/java/src/gen/cc/op_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tensorflow/java/src/gen/cc/op_generator.h"

#include <list>
#include <map>
#include <memory>
Expand All @@ -21,16 +23,20 @@ limitations under the License.
#include <utility>
#include <vector>

#include "absl/strings/ascii.h"
#include "tensorflow/core/framework/api_def.pb.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/framework/op_gen_lib.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/path.h"
#include "tensorflow/core/platform/status.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"
#include "tensorflow/java/src/gen/cc/op_generator.h"
#include "tensorflow/java/src/gen/cc/op_specs.h"
#include "tensorflow/java/src/gen/cc/source_writer.h"
#include "tsl/platform/status.h"

namespace tensorflow {
namespace java {
Expand Down
1 change: 1 addition & 0 deletions tensorflow/java/src/gen/cc/op_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/java/src/gen/cc/op_specs.h"

namespace tensorflow {
Expand Down
13 changes: 11 additions & 2 deletions tensorflow/java/src/gen/cc/op_specs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tensorflow/java/src/gen/cc/op_specs.h"

#include <map>
#include <string>
#include <utility>
#include <vector>

#include "absl/strings/match.h"
#include "absl/strings/str_join.h"
#include "absl/strings/strip.h"
#include "re2/re2.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/api_def.pb.h"
#include "tensorflow/core/framework/attr_value.pb.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/framework/types.h"
#include "tensorflow/core/framework/types.pb.h"
#include "tensorflow/core/lib/strings/str_util.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/java/src/gen/cc/op_specs.h"
#include "tensorflow/core/platform/stringpiece.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"

namespace tensorflow {
namespace java {
Expand Down
1 change: 1 addition & 0 deletions tensorflow/java/src/gen/cc/op_specs.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.
#include "tensorflow/core/framework/api_def.pb.h"
#include "tensorflow/core/framework/attr_value.pb.h"
#include "tensorflow/core/framework/op_def.pb.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"

namespace tensorflow {
Expand Down
11 changes: 9 additions & 2 deletions tensorflow/java/src/gen/cc/source_writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,18 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include <string>
#include "tensorflow/java/src/gen/cc/source_writer.h"

#include <algorithm>
#include <list>
#include <string>

#include "tensorflow/java/src/gen/cc/source_writer.h"
#include "absl/log/check.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/stringpiece.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"
#include "tsl/platform/status.h"

namespace tensorflow {
namespace java {
Expand Down
7 changes: 5 additions & 2 deletions tensorflow/java/src/gen/cc/source_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ limitations under the License.
#ifndef TENSORFLOW_JAVA_SRC_GEN_CC_SOURCE_WRITER_H_
#define TENSORFLOW_JAVA_SRC_GEN_CC_SOURCE_WRITER_H_

#include <string>
#include <stack>
#include <list>
#include <set>
#include <stack>
#include <string>

#include "tensorflow/core/lib/core/stringpiece.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/platform/file_system.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"
#include "tsl/platform/status.h"

namespace tensorflow {
namespace java {
Expand Down
6 changes: 4 additions & 2 deletions tensorflow/java/src/gen/cc/source_writer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tensorflow/java/src/gen/cc/source_writer.h"

#include <list>

#include "tensorflow/core/lib/io/path.h"
#include "tensorflow/core/platform/path.h"
#include "tensorflow/core/platform/test.h"
#include "tensorflow/core/platform/types.h"
#include "tensorflow/java/src/gen/cc/java_defs.h"
#include "tensorflow/java/src/gen/cc/source_writer.h"

namespace tensorflow {
namespace java {
Expand Down