From c11bd122cb9523385f85aabaf38271c337b50dfd Mon Sep 17 00:00:00 2001 From: anhappdev Date: Mon, 20 Oct 2025 15:34:51 +0700 Subject: [PATCH 01/15] Add zlib and libpng dependencies with BUILD files - Add minimal BUILD file for zlib and libpng under `third_party`. - Override zlib and libpng as http_archive dependencies in WORKSPACE. - Update zlib and libpng versions for Xcode 16.4 compatibility. --- WORKSPACE | 18 ++++++++++++ third_party/BUILD | 0 third_party/libpng.BUILD | 60 ++++++++++++++++++++++++++++++++++++++++ third_party/zlib.BUILD | 33 ++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 third_party/BUILD create mode 100644 third_party/libpng.BUILD create mode 100644 third_party/zlib.BUILD diff --git a/WORKSPACE b/WORKSPACE index dbcbc5c2f..b5ec8cfb9 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -26,6 +26,24 @@ tf_patch_finder( workspace_dir = __workspace_dir__, ) +# Override zlib and png version to make it compatible with Xcode 16.4 +http_archive( + name = "zlib", + urls = [ + "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz", + "https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz", + ], + strip_prefix = "zlib-1.3.1", + build_file = "//third_party:zlib.BUILD", +) + +http_archive( + name = "png", + urls = ["https://github.com/glennrp/libpng/archive/refs/tags/v1.6.50.tar.gz"], + strip_prefix = "libpng-1.6.50", + build_file = "//third_party:libpng.BUILD", +) + load("@tf_patch_finder//:patch_win_arm64.bzl", "PATCH_FILE") http_archive( diff --git a/third_party/BUILD b/third_party/BUILD new file mode 100644 index 000000000..e69de29bb diff --git a/third_party/libpng.BUILD b/third_party/libpng.BUILD new file mode 100644 index 000000000..9979afe4b --- /dev/null +++ b/third_party/libpng.BUILD @@ -0,0 +1,60 @@ +# Description: +# libpng is the official PNG reference library. + +licenses(["notice"]) # BSD/MIT-like license + +genrule( + name = "pnglibconf", + srcs = ["scripts/pnglibconf.h.prebuilt"], + outs = ["pnglibconf.h"], + cmd = "cp $(location scripts/pnglibconf.h.prebuilt) $(location pnglibconf.h)", +) + +cc_library( + name = "png", + srcs = [ + "png.c", + "pngdebug.h", + "pngerror.c", + "pngget.c", + "pnginfo.h", + ":pnglibconf", + "pngmem.c", + "pngpread.c", + "pngpriv.h", + "pngread.c", + "pngrio.c", + "pngrtran.c", + "pngrutil.c", + "pngset.c", + "pngstruct.h", + "pngtrans.c", + "pngwio.c", + "pngwrite.c", + "pngwtran.c", + "pngwutil.c", + ] + select({ + "@platforms//cpu:arm64": [ + "arm/arm_init.c", + "arm/filter_neon_intrinsics.c", + "arm/palette_neon_intrinsics.c", + ], + "@build_bazel_apple_support//configs:darwin_arm64": [ + "arm/arm_init.c", + "arm/filter_neon_intrinsics.c", + "arm/palette_neon_intrinsics.c", + ], + "//conditions:default": [], + }), + hdrs = [ + "png.h", + "pngconf.h", + ], + includes = ["."], + linkopts = select({ + "@bazel_tools//src/conditions:windows": [], + "//conditions:default": ["-lm"], + }), + visibility = ["//visibility:public"], + deps = ["@zlib//:zlib"], +) diff --git a/third_party/zlib.BUILD b/third_party/zlib.BUILD new file mode 100644 index 000000000..86a2b57f5 --- /dev/null +++ b/third_party/zlib.BUILD @@ -0,0 +1,33 @@ +# Minimal BUILD for zlib used by TensorFlow and this project. + +cc_library( + name = "zlib", + srcs = [ + "adler32.c", + "compress.c", + "crc32.c", + "deflate.c", + "gzclose.c", + "gzlib.c", + "gzread.c", + "gzwrite.c", + "infback.c", + "inflate.c", + "inffast.c", + "inftrees.c", + "trees.c", + "uncompr.c", + "zutil.c", + ], + hdrs = [ + "zconf.h", + "zlib.h", + ], + includes = ["."], + # On POSIX (darwin, linux, android) unistd.h exists; on Windows it doesn't. + copts = select({ + "@bazel_tools//src/conditions:windows": [], + "//conditions:default": ["-DZ_HAVE_UNISTD_H"], + }), + visibility = ["//visibility:public"], +) From 2c173fce55646e877424481f9acc57c4b9af7126 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Tue, 21 Oct 2025 08:56:08 +0700 Subject: [PATCH 02/15] Enable ARM NEON optimizations for libpng on arm64 platforms --- third_party/libpng.BUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/third_party/libpng.BUILD b/third_party/libpng.BUILD index 9979afe4b..d2d68cda6 100644 --- a/third_party/libpng.BUILD +++ b/third_party/libpng.BUILD @@ -55,6 +55,11 @@ cc_library( "@bazel_tools//src/conditions:windows": [], "//conditions:default": ["-lm"], }), + copts = select({ + "@platforms//cpu:arm64": ["-DPNG_ARM_NEON_OPT=2"], + "@build_bazel_apple_support//configs:darwin_arm64": ["-DPNG_ARM_NEON_OPT=2"], + "//conditions:default": ["-DPNG_ARM_NEON_OPT=0"], + }), visibility = ["//visibility:public"], deps = ["@zlib//:zlib"], ) From 96d6fc72533f5004fbfe5c1e13b7b0441237a7f8 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Tue, 21 Oct 2025 09:21:45 +0700 Subject: [PATCH 03/15] Format WORKSPACE file --- WORKSPACE | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index b5ec8cfb9..bba538bc5 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -29,19 +29,19 @@ tf_patch_finder( # Override zlib and png version to make it compatible with Xcode 16.4 http_archive( name = "zlib", + build_file = "//third_party:zlib.BUILD", + strip_prefix = "zlib-1.3.1", urls = [ "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz", "https://github.com/madler/zlib/archive/refs/tags/v1.3.1.tar.gz", ], - strip_prefix = "zlib-1.3.1", - build_file = "//third_party:zlib.BUILD", ) http_archive( name = "png", - urls = ["https://github.com/glennrp/libpng/archive/refs/tags/v1.6.50.tar.gz"], - strip_prefix = "libpng-1.6.50", build_file = "//third_party:libpng.BUILD", + strip_prefix = "libpng-1.6.50", + urls = ["https://github.com/glennrp/libpng/archive/refs/tags/v1.6.50.tar.gz"], ) load("@tf_patch_finder//:patch_win_arm64.bzl", "PATCH_FILE") From c4a99b8fe561bbb7fd3451ea3761379f7bf8bd49 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 09:28:54 +0700 Subject: [PATCH 04/15] Update iOS CI to use macOS 15 runner --- .github/workflows/ios-build-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-build-test.yml b/.github/workflows/ios-build-test.yml index 972385eed..2e840f254 100644 --- a/.github/workflows/ios-build-test.yml +++ b/.github/workflows/ios-build-test.yml @@ -9,8 +9,8 @@ on: jobs: build: name: Build and test iOS app - # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md - runs-on: macos-14 + # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md + runs-on: macos-15 timeout-minutes: 180 env: PERF_TEST: true From 26d346894807ee05aa4b4ffb8d3779b513925846 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 09:34:04 +0700 Subject: [PATCH 05/15] Update zlib and libpng dependencies with SHA256 checksums --- WORKSPACE | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index bba538bc5..a317f8851 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -30,6 +30,7 @@ tf_patch_finder( http_archive( name = "zlib", build_file = "//third_party:zlib.BUILD", + sha256 = "17e88863f3600672ab49182f217281b6fc4d3c762bde361935e436a95214d05c", strip_prefix = "zlib-1.3.1", urls = [ "https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz", @@ -40,6 +41,7 @@ http_archive( http_archive( name = "png", build_file = "//third_party:libpng.BUILD", + sha256 = "71158e53cfdf2877bc99bcab33641d78df3f48e6e0daad030afe9cb8c031aa46", strip_prefix = "libpng-1.6.50", urls = ["https://github.com/glennrp/libpng/archive/refs/tags/v1.6.50.tar.gz"], ) From 64266e51c0461aefd801491c80fa8c54b375de6a Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 10:03:09 +0700 Subject: [PATCH 06/15] Refactor libpng BUILD file to add iOS-specific ARM64 configs and consolidate ARM NEON optimizations --- third_party/libpng.BUILD | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/third_party/libpng.BUILD b/third_party/libpng.BUILD index d2d68cda6..7cd23fda3 100644 --- a/third_party/libpng.BUILD +++ b/third_party/libpng.BUILD @@ -10,6 +10,17 @@ genrule( cmd = "cp $(location scripts/pnglibconf.h.prebuilt) $(location pnglibconf.h)", ) +config_setting( + name = "target_arm64", + constraint_values = ["@platforms//cpu:arm64"], +) + +# Apple iOS CPU-based config_settings to avoid host/target mix-ups under split transitions. +config_setting( + name = "cpu_ios_arm64", + values = {"cpu": "ios_arm64"}, +) + cc_library( name = "png", srcs = [ @@ -34,12 +45,7 @@ cc_library( "pngwtran.c", "pngwutil.c", ] + select({ - "@platforms//cpu:arm64": [ - "arm/arm_init.c", - "arm/filter_neon_intrinsics.c", - "arm/palette_neon_intrinsics.c", - ], - "@build_bazel_apple_support//configs:darwin_arm64": [ + ":cpu_ios_arm64": [ "arm/arm_init.c", "arm/filter_neon_intrinsics.c", "arm/palette_neon_intrinsics.c", @@ -56,8 +62,7 @@ cc_library( "//conditions:default": ["-lm"], }), copts = select({ - "@platforms//cpu:arm64": ["-DPNG_ARM_NEON_OPT=2"], - "@build_bazel_apple_support//configs:darwin_arm64": ["-DPNG_ARM_NEON_OPT=2"], + ":cpu_ios_arm64": ["-DPNG_ARM_NEON_OPT=2"], "//conditions:default": ["-DPNG_ARM_NEON_OPT=0"], }), visibility = ["//visibility:public"], From 1d65ba692e47bc228d6960a1337dcc272a86ffd7 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 14:47:15 +0700 Subject: [PATCH 07/15] Update iOS CI to use iPhone 16 Pro with runtime `iphonesimulator18.5` --- .github/workflows/ios-build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-build-test.yml b/.github/workflows/ios-build-test.yml index 2e840f254..41d091ba1 100644 --- a/.github/workflows/ios-build-test.yml +++ b/.github/workflows/ios-build-test.yml @@ -65,7 +65,7 @@ jobs: - name: Setup iOS simulator env: DEVICE_NAME: "iPhone 16 Pro" - RUNTIME_SDK: "iphonesimulator18.2" + RUNTIME_SDK: "iphonesimulator18.5" run: | cd flutter/ios/ci_scripts/ && bash setup_simulator.sh open -a Simulator From c1cc8fe644fcbc19fc18dfe5794aab3c0fa9ef9b Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 15:55:43 +0700 Subject: [PATCH 08/15] Pin pip to version 25.1 in iOS CI post-clone script to ensure compatibility. --- flutter/ios/ci_scripts/ci_post_clone.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter/ios/ci_scripts/ci_post_clone.sh b/flutter/ios/ci_scripts/ci_post_clone.sh index e5ed0ca45..1054ca14f 100755 --- a/flutter/ios/ci_scripts/ci_post_clone.sh +++ b/flutter/ios/ci_scripts/ci_post_clone.sh @@ -65,6 +65,7 @@ brew install cocoapods || brew install cocoapods || brew install cocoapods echo "$MC_LOG_PREFIX cocoapods version:" && pod --version echo "$MC_LOG_PREFIX python version:" && python3 --version +python3 -m pip install pip==25.1 python3 -m pip install --break-system-packages \ "numpy>=1.23,<2.0" \ "absl-py>=1.3,<2.0" From 6eed82c9ea01b0e027628a106aa464df4d22ab9e Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 17:07:17 +0700 Subject: [PATCH 09/15] Add Python 3.14 installation in iOS CI post-clone script --- flutter/ios/ci_scripts/ci_post_clone.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/ios/ci_scripts/ci_post_clone.sh b/flutter/ios/ci_scripts/ci_post_clone.sh index 1054ca14f..f0b3156f4 100755 --- a/flutter/ios/ci_scripts/ci_post_clone.sh +++ b/flutter/ios/ci_scripts/ci_post_clone.sh @@ -64,8 +64,9 @@ echo "$MC_LOG_PREFIX protobuf version:" && protoc --version brew install cocoapods || brew install cocoapods || brew install cocoapods echo "$MC_LOG_PREFIX cocoapods version:" && pod --version +brew install python@3.14 || brew install python@3.14 || brew install python@3.14 echo "$MC_LOG_PREFIX python version:" && python3 --version -python3 -m pip install pip==25.1 + python3 -m pip install --break-system-packages \ "numpy>=1.23,<2.0" \ "absl-py>=1.3,<2.0" From c22640e48d0bb20f9d82d96aa575c673a7aa46ff Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 17:16:42 +0700 Subject: [PATCH 10/15] Add `brew link` step for Python 3.14 in iOS CI post-clone script --- flutter/ios/ci_scripts/ci_post_clone.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter/ios/ci_scripts/ci_post_clone.sh b/flutter/ios/ci_scripts/ci_post_clone.sh index f0b3156f4..3d9f6f402 100755 --- a/flutter/ios/ci_scripts/ci_post_clone.sh +++ b/flutter/ios/ci_scripts/ci_post_clone.sh @@ -65,6 +65,7 @@ brew install cocoapods || brew install cocoapods || brew install cocoapods echo "$MC_LOG_PREFIX cocoapods version:" && pod --version brew install python@3.14 || brew install python@3.14 || brew install python@3.14 +brew link --overwrite python@3.14 echo "$MC_LOG_PREFIX python version:" && python3 --version python3 -m pip install --break-system-packages \ From a1a0a55ad4db4ee2feebec1b13ae9b2da62132b1 Mon Sep 17 00:00:00 2001 From: anhappdev Date: Fri, 24 Oct 2025 17:27:41 +0700 Subject: [PATCH 11/15] Update iOS CI post-clone script to explicitly use Python 3.14 --- flutter/ios/ci_scripts/ci_post_clone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/ios/ci_scripts/ci_post_clone.sh b/flutter/ios/ci_scripts/ci_post_clone.sh index 3d9f6f402..6c5ce3692 100755 --- a/flutter/ios/ci_scripts/ci_post_clone.sh +++ b/flutter/ios/ci_scripts/ci_post_clone.sh @@ -66,9 +66,9 @@ echo "$MC_LOG_PREFIX cocoapods version:" && pod --version brew install python@3.14 || brew install python@3.14 || brew install python@3.14 brew link --overwrite python@3.14 -echo "$MC_LOG_PREFIX python version:" && python3 --version +echo "$MC_LOG_PREFIX python version:" && python3.14 --version -python3 -m pip install --break-system-packages \ +python3.14 -m pip install --break-system-packages \ "numpy>=1.23,<2.0" \ "absl-py>=1.3,<2.0" From 20e4b56cb0569f71827e1ee6f959a6e86767f9cd Mon Sep 17 00:00:00 2001 From: anhappdev Date: Mon, 27 Oct 2025 20:31:59 +0700 Subject: [PATCH 12/15] Update Bazel version to 8.4.2 and adjust `.bazelrc` configurations --- .bazelrc | 2 ++ .bazelversion | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index a2ee67b8c..069f18bb6 100644 --- a/.bazelrc +++ b/.bazelrc @@ -9,6 +9,8 @@ build --spawn_strategy=standalone # This flag is required by tensorflow common --experimental_repo_remote_exec +common --noenable_bzlmod +common --enable_workspace # Default options should come above this line. diff --git a/.bazelversion b/.bazelversion index 91e4a9f26..e7fdef7e2 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.3.2 +8.4.2 From 34a52c1d1f8d9ff7a667d1cb14e176460a92c77a Mon Sep 17 00:00:00 2001 From: anhappdev Date: Mon, 27 Oct 2025 20:58:58 +0700 Subject: [PATCH 13/15] Add `MODULE.bazel` and `MODULE.bazel.lock` for Bazel module system initialization --- MODULE.bazel | 7 ++ MODULE.bazel.lock | 139 +++++++++++++++++++++++++++++++ resolved_deps.py | 202 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 348 insertions(+) create mode 100644 MODULE.bazel create mode 100644 MODULE.bazel.lock create mode 100644 resolved_deps.py diff --git a/MODULE.bazel b/MODULE.bazel new file mode 100644 index 000000000..4582da0da --- /dev/null +++ b/MODULE.bazel @@ -0,0 +1,7 @@ +module(name = "mlperf_app", version="") + +# -- bazel_dep definitions -- # + +# -- use_repo_rule statements -- # + +# -- repo definitions -- # diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock new file mode 100644 index 000000000..34d9edbd6 --- /dev/null +++ b/MODULE.bazel.lock @@ -0,0 +1,139 @@ +{ + "lockFileVersion": 18, + "registryFileHashes": { + "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", + "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", + "https://bcr.bazel.build/modules/abseil-cpp/20211102.0/MODULE.bazel": "70390338f7a5106231d20620712f7cccb659cd0e9d073d1991c038eb9fc57589", + "https://bcr.bazel.build/modules/abseil-cpp/20230125.1/MODULE.bazel": "89047429cb0207707b2dface14ba7f8df85273d484c2572755be4bab7ce9c3a0", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0.bcr.1/MODULE.bazel": "1c8cec495288dccd14fdae6e3f95f772c1c91857047a098fad772034264cc8cb", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.0/MODULE.bazel": "d253ae36a8bd9ee3c5955384096ccb6baf16a1b1e93e858370da0a3b94f77c16", + "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/MODULE.bazel": "37bcdb4440fbb61df6a1c296ae01b327f19e9bb521f9b8e26ec854b6f97309ed", + "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/source.json": "9be551b8d4e3ef76875c0d744b5d6a504a27e3ae67bc6b28f46415fd2d2957da", + "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", + "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", + "https://bcr.bazel.build/modules/bazel_features/1.15.0/MODULE.bazel": "d38ff6e517149dc509406aca0db3ad1efdd890a85e049585b7234d04238e2a4d", + "https://bcr.bazel.build/modules/bazel_features/1.17.0/MODULE.bazel": "039de32d21b816b47bd42c778e0454217e9c9caac4a3cf8e15c7231ee3ddee4d", + "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", + "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", + "https://bcr.bazel.build/modules/bazel_features/1.30.0/source.json": "b07e17f067fe4f69f90b03b36ef1e08fe0d1f3cac254c1241a1818773e3423bc", + "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", + "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", + "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", + "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", + "https://bcr.bazel.build/modules/bazel_skylib/1.2.1/MODULE.bazel": "f35baf9da0efe45fa3da1696ae906eea3d615ad41e2e3def4aeb4e8bc0ef9a7a", + "https://bcr.bazel.build/modules/bazel_skylib/1.3.0/MODULE.bazel": "20228b92868bf5cfc41bda7afc8a8ba2a543201851de39d990ec957b513579c5", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.1/MODULE.bazel": "a0dcb779424be33100dcae821e9e27e4f2901d9dfd5333efe5ac6a8d7ab75e1d", + "https://bcr.bazel.build/modules/bazel_skylib/1.4.2/MODULE.bazel": "3bd40978e7a1fac911d5989e6b09d8f64921865a45822d8b09e815eaa726a651", + "https://bcr.bazel.build/modules/bazel_skylib/1.5.0/MODULE.bazel": "32880f5e2945ce6a03d1fbd588e9198c0a959bb42297b2cfaf1685b7bc32e138", + "https://bcr.bazel.build/modules/bazel_skylib/1.6.1/MODULE.bazel": "8fdee2dbaace6c252131c00e1de4b165dc65af02ea278476187765e1a617b917", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.0/MODULE.bazel": "0db596f4563de7938de764cc8deeabec291f55e8ec15299718b93c4423e9796d", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/MODULE.bazel": "3120d80c5861aa616222ec015332e5f8d3171e062e3e804a2a0253e1be26e59b", + "https://bcr.bazel.build/modules/bazel_skylib/1.7.1/source.json": "f121b43eeefc7c29efbd51b83d08631e2347297c95aac9764a701f2a6a2bb953", + "https://bcr.bazel.build/modules/buildozer/7.1.2/MODULE.bazel": "2e8dd40ede9c454042645fd8d8d0cd1527966aa5c919de86661e62953cd73d84", + "https://bcr.bazel.build/modules/buildozer/7.1.2/source.json": "c9028a501d2db85793a6996205c8de120944f50a0d570438fcae0457a5f9d1f8", + "https://bcr.bazel.build/modules/google_benchmark/1.8.2/MODULE.bazel": "a70cf1bba851000ba93b58ae2f6d76490a9feb74192e57ab8e8ff13c34ec50cb", + "https://bcr.bazel.build/modules/googletest/1.11.0/MODULE.bazel": "3a83f095183f66345ca86aa13c58b59f9f94a2f81999c093d4eeaa2d262d12f4", + "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", + "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/source.json": "41e9e129f80d8c8bf103a7acc337b76e54fad1214ac0a7084bf24f4cd924b8b4", + "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", + "https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075", + "https://bcr.bazel.build/modules/jsoncpp/1.9.5/source.json": "4108ee5085dd2885a341c7fab149429db457b3169b86eb081fa245eadf69169d", + "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", + "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", + "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", + "https://bcr.bazel.build/modules/platforms/0.0.11/source.json": "f7e188b79ebedebfe75e9e1d098b8845226c7992b307e28e1496f23112e8fc29", + "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", + "https://bcr.bazel.build/modules/platforms/0.0.5/MODULE.bazel": "5733b54ea419d5eaf7997054bb55f6a1d0b5ff8aedf0176fef9eea44f3acda37", + "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", + "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", + "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", + "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", + "https://bcr.bazel.build/modules/protobuf/27.0/MODULE.bazel": "7873b60be88844a0a1d8f80b9d5d20cfbd8495a689b8763e76c6372998d3f64c", + "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", + "https://bcr.bazel.build/modules/protobuf/29.0-rc2/MODULE.bazel": "6241d35983510143049943fc0d57937937122baf1b287862f9dc8590fc4c37df", + "https://bcr.bazel.build/modules/protobuf/29.0/MODULE.bazel": "319dc8bf4c679ff87e71b1ccfb5a6e90a6dbc4693501d471f48662ac46d04e4e", + "https://bcr.bazel.build/modules/protobuf/29.0/source.json": "b857f93c796750eef95f0d61ee378f3420d00ee1dd38627b27193aa482f4f981", + "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", + "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e", + "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1/source.json": "be4789e951dd5301282729fe3d4938995dc4c1a81c2ff150afc9f1b0504c6022", + "https://bcr.bazel.build/modules/re2/2023-09-01/MODULE.bazel": "cb3d511531b16cfc78a225a9e2136007a48cf8a677e4264baeab57fe78a80206", + "https://bcr.bazel.build/modules/re2/2023-09-01/source.json": "e044ce89c2883cd957a2969a43e79f7752f9656f6b20050b62f90ede21ec6eb4", + "https://bcr.bazel.build/modules/rules_android/0.1.1/MODULE.bazel": "48809ab0091b07ad0182defb787c4c5328bd3a278938415c00a7b69b50c4d3a8", + "https://bcr.bazel.build/modules/rules_android/0.1.1/source.json": "e6986b41626ee10bdc864937ffb6d6bf275bb5b9c65120e6137d56e6331f089e", + "https://bcr.bazel.build/modules/rules_cc/0.0.1/MODULE.bazel": "cb2aa0747f84c6c3a78dad4e2049c154f08ab9d166b1273835a8174940365647", + "https://bcr.bazel.build/modules/rules_cc/0.0.10/MODULE.bazel": "ec1705118f7eaedd6e118508d3d26deba2a4e76476ada7e0e3965211be012002", + "https://bcr.bazel.build/modules/rules_cc/0.0.13/MODULE.bazel": "0e8529ed7b323dad0775ff924d2ae5af7640b23553dfcd4d34344c7e7a867191", + "https://bcr.bazel.build/modules/rules_cc/0.0.14/MODULE.bazel": "5e343a3aac88b8d7af3b1b6d2093b55c347b8eefc2e7d1442f7a02dc8fea48ac", + "https://bcr.bazel.build/modules/rules_cc/0.0.15/MODULE.bazel": "6704c35f7b4a72502ee81f61bf88706b54f06b3cbe5558ac17e2e14666cd5dcc", + "https://bcr.bazel.build/modules/rules_cc/0.0.16/MODULE.bazel": "7661303b8fc1b4d7f532e54e9d6565771fea666fbdf839e0a86affcd02defe87", + "https://bcr.bazel.build/modules/rules_cc/0.0.2/MODULE.bazel": "6915987c90970493ab97393024c156ea8fb9f3bea953b2f3ec05c34f19b5695c", + "https://bcr.bazel.build/modules/rules_cc/0.0.6/MODULE.bazel": "abf360251023dfe3efcef65ab9d56beefa8394d4176dd29529750e1c57eaa33f", + "https://bcr.bazel.build/modules/rules_cc/0.0.8/MODULE.bazel": "964c85c82cfeb6f3855e6a07054fdb159aced38e99a5eecf7bce9d53990afa3e", + "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel": "836e76439f354b89afe6a911a7adf59a6b2518fafb174483ad78a2a2fde7b1c5", + "https://bcr.bazel.build/modules/rules_cc/0.1.1/MODULE.bazel": "2f0222a6f229f0bf44cd711dc13c858dad98c62d52bd51d8fc3a764a83125513", + "https://bcr.bazel.build/modules/rules_cc/0.1.1/source.json": "d61627377bd7dd1da4652063e368d9366fc9a73920bfa396798ad92172cf645c", + "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", + "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", + "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/source.json": "c8b1e2c717646f1702290959a3302a178fb639d987ab61d548105019f11e527e", + "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", + "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", + "https://bcr.bazel.build/modules/rules_java/6.0.0/MODULE.bazel": "8a43b7df601a7ec1af61d79345c17b31ea1fedc6711fd4abfd013ea612978e39", + "https://bcr.bazel.build/modules/rules_java/6.4.0/MODULE.bazel": "e986a9fe25aeaa84ac17ca093ef13a4637f6107375f64667a15999f77db6c8f6", + "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", + "https://bcr.bazel.build/modules/rules_java/7.10.0/MODULE.bazel": "530c3beb3067e870561739f1144329a21c851ff771cd752a49e06e3dc9c2e71a", + "https://bcr.bazel.build/modules/rules_java/7.12.2/MODULE.bazel": "579c505165ee757a4280ef83cda0150eea193eed3bef50b1004ba88b99da6de6", + "https://bcr.bazel.build/modules/rules_java/7.2.0/MODULE.bazel": "06c0334c9be61e6cef2c8c84a7800cef502063269a5af25ceb100b192453d4ab", + "https://bcr.bazel.build/modules/rules_java/7.3.2/MODULE.bazel": "50dece891cfdf1741ea230d001aa9c14398062f2b7c066470accace78e412bc2", + "https://bcr.bazel.build/modules/rules_java/7.6.1/MODULE.bazel": "2f14b7e8a1aa2f67ae92bc69d1ec0fa8d9f827c4e17ff5e5f02e91caa3b2d0fe", + "https://bcr.bazel.build/modules/rules_java/8.14.0/MODULE.bazel": "717717ed40cc69994596a45aec6ea78135ea434b8402fb91b009b9151dd65615", + "https://bcr.bazel.build/modules/rules_java/8.14.0/source.json": "8a88c4ca9e8759da53cddc88123880565c520503321e2566b4e33d0287a3d4bc", + "https://bcr.bazel.build/modules/rules_jvm_external/4.4.2/MODULE.bazel": "a56b85e418c83eb1839819f0b515c431010160383306d13ec21959ac412d2fe7", + "https://bcr.bazel.build/modules/rules_jvm_external/5.1/MODULE.bazel": "33f6f999e03183f7d088c9be518a63467dfd0be94a11d0055fe2d210f89aa909", + "https://bcr.bazel.build/modules/rules_jvm_external/5.2/MODULE.bazel": "d9351ba35217ad0de03816ef3ed63f89d411349353077348a45348b096615036", + "https://bcr.bazel.build/modules/rules_jvm_external/5.3/MODULE.bazel": "bf93870767689637164657731849fb887ad086739bd5d360d90007a581d5527d", + "https://bcr.bazel.build/modules/rules_jvm_external/6.1/MODULE.bazel": "75b5fec090dbd46cf9b7d8ea08cf84a0472d92ba3585b476f44c326eda8059c4", + "https://bcr.bazel.build/modules/rules_jvm_external/6.3/MODULE.bazel": "c998e060b85f71e00de5ec552019347c8bca255062c990ac02d051bb80a38df0", + "https://bcr.bazel.build/modules/rules_jvm_external/6.3/source.json": "6f5f5a5a4419ae4e37c35a5bb0a6ae657ed40b7abc5a5189111b47fcebe43197", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.0/MODULE.bazel": "ef85697305025e5a61f395d4eaede272a5393cee479ace6686dba707de804d59", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/MODULE.bazel": "d269a01a18ee74d0335450b10f62c9ed81f2321d7958a2934e44272fe82dcef3", + "https://bcr.bazel.build/modules/rules_kotlin/1.9.6/source.json": "2faa4794364282db7c06600b7e5e34867a564ae91bda7cae7c29c64e9466b7d5", + "https://bcr.bazel.build/modules/rules_license/0.0.3/MODULE.bazel": "627e9ab0247f7d1e05736b59dbb1b6871373de5ad31c3011880b4133cafd4bd0", + "https://bcr.bazel.build/modules/rules_license/0.0.7/MODULE.bazel": "088fbeb0b6a419005b89cf93fe62d9517c0a2b8bb56af3244af65ecfe37e7d5d", + "https://bcr.bazel.build/modules/rules_license/1.0.0/MODULE.bazel": "a7fda60eefdf3d8c827262ba499957e4df06f659330bbe6cdbdb975b768bb65c", + "https://bcr.bazel.build/modules/rules_license/1.0.0/source.json": "a52c89e54cc311196e478f8382df91c15f7a2bfdf4c6cd0e2675cc2ff0b56efb", + "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", + "https://bcr.bazel.build/modules/rules_pkg/1.0.1/source.json": "bd82e5d7b9ce2d31e380dd9f50c111d678c3bdaca190cb76b0e1c71b05e1ba8a", + "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", + "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", + "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", + "https://bcr.bazel.build/modules/rules_proto/7.0.2/MODULE.bazel": "bf81793bd6d2ad89a37a40693e56c61b0ee30f7a7fdbaf3eabbf5f39de47dea2", + "https://bcr.bazel.build/modules/rules_proto/7.0.2/source.json": "1e5e7260ae32ef4f2b52fd1d0de8d03b606a44c91b694d2f1afb1d3b28a48ce1", + "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", + "https://bcr.bazel.build/modules/rules_python/0.23.1/MODULE.bazel": "49ffccf0511cb8414de28321f5fcf2a31312b47c40cc21577144b7447f2bf300", + "https://bcr.bazel.build/modules/rules_python/0.25.0/MODULE.bazel": "72f1506841c920a1afec76975b35312410eea3aa7b63267436bfb1dd91d2d382", + "https://bcr.bazel.build/modules/rules_python/0.28.0/MODULE.bazel": "cba2573d870babc976664a912539b320cbaa7114cd3e8f053c720171cde331ed", + "https://bcr.bazel.build/modules/rules_python/0.31.0/MODULE.bazel": "93a43dc47ee570e6ec9f5779b2e64c1476a6ce921c48cc9a1678a91dd5f8fd58", + "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel": "9208ee05fd48bf09ac60ed269791cf17fb343db56c8226a720fbb1cdf467166c", + "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", + "https://bcr.bazel.build/modules/rules_python/0.40.0/source.json": "939d4bd2e3110f27bfb360292986bb79fd8dcefb874358ccd6cdaa7bda029320", + "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", + "https://bcr.bazel.build/modules/rules_shell/0.2.0/source.json": "7f27af3c28037d9701487c4744b5448d26537cc66cdef0d8df7ae85411f8de95", + "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", + "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", + "https://bcr.bazel.build/modules/stardoc/0.5.6/MODULE.bazel": "c43dabc564990eeab55e25ed61c07a1aadafe9ece96a4efabb3f8bf9063b71ef", + "https://bcr.bazel.build/modules/stardoc/0.7.0/MODULE.bazel": "05e3d6d30c099b6770e97da986c53bd31844d7f13d41412480ea265ac9e8079c", + "https://bcr.bazel.build/modules/stardoc/0.7.1/MODULE.bazel": "3548faea4ee5dda5580f9af150e79d0f6aea934fc60c1cc50f4efdd9420759e7", + "https://bcr.bazel.build/modules/stardoc/0.7.1/source.json": "b6500ffcd7b48cd72c29bb67bcac781e12701cc0d6d55d266a652583cfcdab01", + "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", + "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", + "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/source.json": "22bc55c47af97246cfc093d0acf683a7869377de362b5d1c552c2c2e16b7a806", + "https://bcr.bazel.build/modules/zlib/1.3.1/MODULE.bazel": "751c9940dcfe869f5f7274e1295422a34623555916eb98c174c1e945594bf198" + }, + "selectedYankedVersions": {}, + "moduleExtensions": {} +} diff --git a/resolved_deps.py b/resolved_deps.py new file mode 100644 index 000000000..35101a75a --- /dev/null +++ b/resolved_deps.py @@ -0,0 +1,202 @@ +resolved = [ + { + "original_rule_class": "local_repository", + "original_attributes": { + "name": "bazel_tools", + "path": "/var/tmp/_bazel_anh/install/28992672a83e268a373e6b60cf8c5ee7/embedded_tools" + }, + "native": "local_repository(name = \"bazel_tools\", path = __embedded_dir__ + \"/\" + \"embedded_tools\")" + }, + { + "original_rule_class": "//:platform.bzl%tf_patch_finder", + "definition_information": "Repository tf_patch_finder instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:24:16: in \nRepository rule tf_patch_finder defined at:\n /Users/anh/dev/mlcommons/mobile_app_open/platform.bzl:16:34: in \n", + "original_attributes": { + "name": "tf_patch_finder", + "workspace_dir": "/Users/anh/dev/mlcommons/mobile_app_open" + }, + "repositories": [ + { + "rule_class": "//:platform.bzl%tf_patch_finder", + "attributes": { + "name": "tf_patch_finder", + "workspace_dir": "/Users/anh/dev/mlcommons/mobile_app_open" + }, + "output_tree_hash": "cb60cc775083903286012fed258cb348af615362f12f73bcda540ef102906c5f" + } + ] + }, + { + "original_rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "definition_information": "Repository rules_python instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:15:13: in \nRepository rule http_archive defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in \n", + "original_attributes": { + "name": "rules_python", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz", + "sha256": "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036", + "strip_prefix": "rules_python-0.25.0" + }, + "repositories": [ + { + "rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "name": "rules_python", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz", + "sha256": "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036", + "strip_prefix": "rules_python-0.25.0" + }, + "output_tree_hash": "a381213e8454f4f62102d12f179d1d0773e1517ac873f2192c6758fcaaf6611b" + } + ] + }, + { + "original_rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "definition_information": "Repository org_tensorflow instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:51:13: in \nRepository rule http_archive defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in \n", + "original_attributes": { + "name": "org_tensorflow", + "urls": [ + "https://github.com/tensorflow/tensorflow/archive/v2.14.0.tar.gz" + ], + "sha256": "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f", + "strip_prefix": "tensorflow-2.14.0", + "patches": [ + "//:flutter/third_party/enable-png-in-tensorflow-lite-tools-evaluation.patch", + "//:flutter/third_party/png-with-number-of-channels-detected.patch", + "//:flutter/third_party/use_unsigned_char.patch", + "//:flutter/third_party/tensorflow-fix-file-opening-mode-for-Windows.patch", + "//:flutter/third_party/tf-eigen.patch", + "//patches:ndk_25_r14.diff" + ], + "patch_args": [ + "-p1" + ] + }, + "repositories": [ + { + "rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "name": "org_tensorflow", + "urls": [ + "https://github.com/tensorflow/tensorflow/archive/v2.14.0.tar.gz" + ], + "sha256": "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f", + "strip_prefix": "tensorflow-2.14.0", + "patches": [ + "//:flutter/third_party/enable-png-in-tensorflow-lite-tools-evaluation.patch", + "//:flutter/third_party/png-with-number-of-channels-detected.patch", + "//:flutter/third_party/use_unsigned_char.patch", + "//:flutter/third_party/tensorflow-fix-file-opening-mode-for-Windows.patch", + "//:flutter/third_party/tf-eigen.patch", + "//patches:ndk_25_r14.diff" + ], + "patch_args": [ + "-p1" + ] + }, + "output_tree_hash": "720508d54a43d77789d8f4edac8691503373e0458a8b715695b1318dac736ffd" + } + ] + }, + { + "original_rule_class": "@@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl%python_repository", + "definition_information": "Repository python_version_repo instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:78:18: in \nRepository rule python_repository defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/org_tensorflow/tensorflow/tools/toolchains/python/python_repo.bzl:29:36: in \n", + "original_attributes": { + "name": "python_version_repo" + }, + "repositories": [ + { + "rule_class": "@@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl%python_repository", + "attributes": { + "name": "python_version_repo" + }, + "output_tree_hash": "673a05cb61441837d24ae9eaafc47a5a57c0a31f3c8237e45c19ad0b5f0afb7b" + } + ] + }, + { + "original_rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "definition_information": "Repository bazel_skylib instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:6:13: in \nRepository rule http_archive defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in \n", + "original_attributes": { + "name": "bazel_skylib", + "urls": [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz" + ], + "sha256": "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa" + }, + "repositories": [ + { + "rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "name": "bazel_skylib", + "urls": [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz" + ], + "sha256": "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa" + }, + "output_tree_hash": "4ae8283d310bb776140e679603e7d708a91f4c25cd0af9cbdc53b57889c2e913" + } + ] + }, + { + "original_rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "definition_information": "Repository io_bazel_rules_closure instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:91:14: in \n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/org_tensorflow/tensorflow/workspace3.bzl:8:17: in workspace\nRepository rule http_archive defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in \n", + "original_attributes": { + "name": "io_bazel_rules_closure", + "generator_name": "io_bazel_rules_closure", + "generator_function": "workspace", + "generator_location": None, + "urls": [ + "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", + "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz" + ], + "sha256": "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", + "strip_prefix": "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149" + }, + "repositories": [ + { + "rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "name": "io_bazel_rules_closure", + "generator_name": "io_bazel_rules_closure", + "generator_function": "workspace", + "generator_location": None, + "urls": [ + "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", + "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz" + ], + "sha256": "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", + "strip_prefix": "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149" + }, + "output_tree_hash": "a0a27ed42797fa7d222bdf985af72d4cdd666b6a0b23e48aa370bb99a677d58d" + } + ] + }, + { + "original_rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "definition_information": "Repository rules_jvm_external instantiated at:\n /Users/anh/dev/mlcommons/mobile_app_open/WORKSPACE:91:14: in \n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/org_tensorflow/tensorflow/workspace3.bzl:41:17: in workspace\nRepository rule http_archive defined at:\n /private/var/tmp/_bazel_anh/30b0ae0ebfc82d789f6eeabcb52f979d/external/bazel_tools/tools/build_defs/repo/http.bzl:431:31: in \n", + "original_attributes": { + "name": "rules_jvm_external", + "generator_name": "rules_jvm_external", + "generator_function": "workspace", + "generator_location": None, + "url": "https://github.com/bazelbuild/rules_jvm_external/archive/4.3.zip", + "sha256": "6274687f6fc5783b589f56a2f1ed60de3ce1f99bc4e8f9edef3de43bdf7c6e74", + "strip_prefix": "rules_jvm_external-4.3" + }, + "repositories": [ + { + "rule_class": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "name": "rules_jvm_external", + "generator_name": "rules_jvm_external", + "generator_function": "workspace", + "generator_location": None, + "url": "https://github.com/bazelbuild/rules_jvm_external/archive/4.3.zip", + "sha256": "6274687f6fc5783b589f56a2f1ed60de3ce1f99bc4e8f9edef3de43bdf7c6e74", + "strip_prefix": "rules_jvm_external-4.3" + }, + "output_tree_hash": "327a52f739c3b078117d9ded0b0630fea535c193cf6ff41764bd4b2eae469334" + } + ] + } +] \ No newline at end of file From d8c889d25f95c960e89c1ee6c2bcadf2089d1bdc Mon Sep 17 00:00:00 2001 From: anhappdev Date: Mon, 3 Nov 2025 10:40:03 +0700 Subject: [PATCH 14/15] Downgrade Bazel version to 7.6.2 in `.bazelversion` --- .bazelversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index e7fdef7e2..e81e85b81 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -8.4.2 +7.6.2 From ebc6a5173383ff3460353d3ea3bc1a9d31433a5c Mon Sep 17 00:00:00 2001 From: anhappdev Date: Mon, 3 Nov 2025 11:10:55 +0700 Subject: [PATCH 15/15] Update TensorFlow to 2.20.0 --- WORKSPACE | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index a317f8851..c4a003759 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -52,20 +52,12 @@ http_archive( name = "org_tensorflow", patch_args = ["-p1"], patches = [ - # Add patches for adding png in tflite evaluation code - "//:flutter/third_party/enable-png-in-tensorflow-lite-tools-evaluation.patch", - "//:flutter/third_party/png-with-number-of-channels-detected.patch", - "//:flutter/third_party/use_unsigned_char.patch", # Fix tensorflow not being able to read image files on Windows "//:flutter/third_party/tensorflow-fix-file-opening-mode-for-Windows.patch", - "//:flutter/third_party/tf-eigen.patch", - # NDK 25 support - "//patches:ndk_25_r14.diff", ] + PATCH_FILE, - sha256 = "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f", - strip_prefix = "tensorflow-2.14.0", + strip_prefix = "tensorflow-2.20.0", urls = [ - "https://github.com/tensorflow/tensorflow/archive/v2.14.0.tar.gz", + "https://github.com/tensorflow/tensorflow/archive/v2.20.0.tar.gz", ], )