Skip to content

Commit b0d0253

Browse files
Merge pull request #3185 from ROCm/develop-upstream-sync-260306
Develop upstream sync 260306
2 parents 3d310f8 + 65634f8 commit b0d0253

710 files changed

Lines changed: 19392 additions & 12084 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ common --action_env=PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=upb
100100
# conflict when precompiling. Disable to avoid that problem.
101101
# See https://github.com/bazel-contrib/rules_python/issues/2445
102102
common --@rules_python//python/config_settings:precompile=force_disabled
103+
common --@rules_python//python/config_settings:bootstrap_impl=script --repo_env=RULES_PYTHON_ENABLE_PIPSTAR=0
103104

104105
# Do not do this. If enabled protobuf's core internal target
105106
# @com_google_protobuf//python:protobuf_python will start depending on a bunch

ci/devinfra/docker/windows2022/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - MSVC 14.39
55
# - LLVM/Clang 18.1.4
66
# - MSYS2 + curl, git, patch, vim, unzip, zip
7-
# - Python 3.9 - 3.13
7+
# - Python 3.9 - 3.14
88
# - Bazelisk 1.22.1
99
# - JDK 21 (Azul Zulu)
1010

@@ -108,7 +108,8 @@ RUN function Install-Python { \
108108
@{ version = '3.10.11'; prependPath = 0 }, \
109109
@{ version = '3.11.9'; prependPath = 0 }, \
110110
@{ version = '3.12.8'; prependPath = 0 }, \
111-
@{ version = '3.13.1'; prependPath = 1 } \
111+
@{ version = '3.13.1'; prependPath = 0 } \
112+
@{ version = '3.14.3'; prependPath = 1 } \
112113
); \
113114
foreach ($v in $versions) { \
114115
Install-Python -version $v.version -prependPath $v.prependPath; \

tensorflow/compiler/jit/device_compiler_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ TEST_F(DeviceCompilerTest, CompileStrictPersistentCacheFailedToPersist) {
480480
const XlaCompiler::CompilationResult* compilation_result = nullptr;
481481
xla::LocalExecutable* xla_executable = nullptr;
482482

483-
auto persistor = down_cast<MockXlaDeviceExecutablePersistor*>(
483+
auto persistor = absl::down_cast<MockXlaDeviceExecutablePersistor*>(
484484
xla_device_compiler->persistor());
485485
TF_ASSERT_OK_AND_ASSIGN(auto signature, Signature::Build(fn, args));
486486
EXPECT_CALL(*persistor,

tensorflow/compiler/mlir/lite/BUILD

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ load(
1313
load("//tensorflow/core/platform:rules_cc.bzl", "cc_library")
1414

1515
package(
16-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
16+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
1717
default_visibility = ["//visibility:public"],
1818
licenses = ["notice"],
1919
)
@@ -590,6 +590,7 @@ cc_library(
590590
":cleanup_optimization_barrier",
591591
":converter_inc",
592592
":cost_estimators",
593+
":downcast_x64",
593594
":elements_attr_roundtrip_pass",
594595
":optimize_broadcast_like_pass",
595596
":optimize_broadcast_like_pass_options",
@@ -1018,6 +1019,26 @@ cc_library(
10181019
],
10191020
)
10201021

1022+
cc_library(
1023+
name = "downcast_x64",
1024+
srcs = [
1025+
"transforms/downcast_x64_pass.cc",
1026+
],
1027+
hdrs = [
1028+
"transforms/downcast_x64_pass.h",
1029+
],
1030+
deps = [
1031+
":pass",
1032+
":pass_options",
1033+
":tensorflow_lite_ops",
1034+
"@llvm-project//llvm:Support",
1035+
"@llvm-project//mlir:FuncDialect",
1036+
"@llvm-project//mlir:IR",
1037+
"@llvm-project//mlir:Pass",
1038+
"@llvm-project//mlir:Support",
1039+
],
1040+
)
1041+
10211042
cc_library(
10221043
name = "tensorflow_lite_legalize_tf_analyze_variables",
10231044
srcs = [
@@ -1165,6 +1186,7 @@ cc_library(
11651186
":constant_utils",
11661187
":convert_type",
11671188
":cost_estimators",
1189+
":downcast_x64",
11681190
":elements_attr_roundtrip_pass",
11691191
":fake_quant_utils",
11701192
":lstm_utils",
@@ -1433,6 +1455,7 @@ cc_library(
14331455
],
14341456
deps = [
14351457
"convert_type",
1458+
":downcast_x64",
14361459
":elements_attr_roundtrip_pass",
14371460
":op_quant_spec_getters_inc",
14381461
":optimize_broadcast_like_pass_options",
@@ -1991,6 +2014,7 @@ cc_library(
19912014
":common",
19922015
":converter_flags_proto_cc",
19932016
":converter_pass_options_setter",
2017+
":downcast_x64",
19942018
":elements_attr_roundtrip_pass",
19952019
":fake_quant_utils",
19962020
":optimize_broadcast_like_pass",

tensorflow/compiler/mlir/lite/converter_flags.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum FileFormat {
3939
// of as properties of models, instead describing how models are to be
4040
// processed in the context of the present tooling job.
4141
//
42-
// Next ID to use: 69.
42+
// Next ID to use: 70.
4343
message ConverterFlags {
4444
reserved 54, 61;
4545

@@ -380,4 +380,7 @@ message ConverterFlags {
380380
// but it may cause incorrect results when broadcasting ops are introduced by
381381
// explicit broadcasting in the source model.
382382
optional bool unsafe_fuse_dynamic_shaped_broadcast = 68 [default = false];
383+
384+
// If false, downcast x64 tensors and inputs to x32.
385+
optional bool enable_x64 = 69 [default = true];
383386
}

tensorflow/compiler/mlir/lite/core/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")
33
load("//tensorflow/compiler/mlir/lite:build_def.bzl", "tflite_copts_warnings")
44

55
package(
6-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
6+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
77
licenses = ["notice"],
88
)
99

tensorflow/compiler/mlir/lite/core/api/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")
44
load("//tensorflow/compiler/mlir/lite:build_def.bzl", "tflite_copts")
55

66
package(
7-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
7+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
88
default_visibility = ["//visibility:public"],
99
licenses = ["notice"],
1010
)

tensorflow/compiler/mlir/lite/core/c/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")
33
load("//tensorflow/compiler/mlir/lite:build_def.bzl", "tflite_copts")
44

55
package(
6-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
6+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
77
default_visibility = [
88
"//visibility:public",
99
],

tensorflow/compiler/mlir/lite/delegates/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ==============================================================================
1515

1616
package(
17-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
17+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
1818
default_visibility = ["//visibility:public"],
1919
licenses = ["notice"],
2020
)

tensorflow/compiler/mlir/lite/delegates/flex/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ default_visibility = [
1818
# This is a TF Lite delegate that is powered by TensorFlow's Eager.
1919
#
2020
package(
21-
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
21+
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
2222
default_visibility = default_visibility,
2323
licenses = ["notice"],
2424
)

0 commit comments

Comments
 (0)