mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Add LINT.IfChange rule for TFLite CMake builds
PiperOrigin-RevId: 383795767 Change-Id: I88d1aa1bd6265e6f6d99ff070f0ca981cd4cd035
This commit is contained in:
parent
e074afc466
commit
8337f1a19d
|
|
@ -125,6 +125,8 @@ def _tf_repositories():
|
||||||
# b) get the sha256 hash of the commit by running:
|
# b) get the sha256 hash of the commit by running:
|
||||||
# curl -L <url> | sha256sum
|
# curl -L <url> | sha256sum
|
||||||
# and update the sha256 with the result.
|
# and update the sha256 with the result.
|
||||||
|
|
||||||
|
# LINT.IfChange
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "XNNPACK",
|
name = "XNNPACK",
|
||||||
sha256 = "96d81ea94cfcd7a6d8a0424af60198b731f660b7f720ffdc99e0a98b86eabd55",
|
sha256 = "96d81ea94cfcd7a6d8a0424af60198b731f660b7f720ffdc99e0a98b86eabd55",
|
||||||
|
|
@ -134,6 +136,7 @@ def _tf_repositories():
|
||||||
"https://github.com/google/XNNPACK/archive/75d1b7977fd4e732d17d9948bab2f071632b0414.zip",
|
"https://github.com/google/XNNPACK/archive/75d1b7977fd4e732d17d9948bab2f071632b0414.zip",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/xnnpack.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "FXdiv",
|
name = "FXdiv",
|
||||||
|
|
@ -704,6 +707,7 @@ def _tf_repositories():
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# LINT.IfChange
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "fft2d",
|
name = "fft2d",
|
||||||
build_file = "//third_party/fft2d:fft2d.BUILD",
|
build_file = "//third_party/fft2d:fft2d.BUILD",
|
||||||
|
|
@ -714,6 +718,7 @@ def _tf_repositories():
|
||||||
"https://github.com/petewarden/OouraFFT/archive/v1.0.tar.gz",
|
"https://github.com/petewarden/OouraFFT/archive/v1.0.tar.gz",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/fft2d.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "snappy",
|
name = "snappy",
|
||||||
|
|
@ -844,6 +849,7 @@ def _tf_repositories():
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# LINT.IfChange
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "arm_neon_2_x86_sse",
|
name = "arm_neon_2_x86_sse",
|
||||||
build_file = "//third_party:arm_neon_2_x86_sse.BUILD",
|
build_file = "//third_party:arm_neon_2_x86_sse.BUILD",
|
||||||
|
|
@ -854,6 +860,7 @@ def _tf_repositories():
|
||||||
"https://github.com/intel/ARM_NEON_2_x86_SSE/archive/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz",
|
"https://github.com/intel/ARM_NEON_2_x86_SSE/archive/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/neon2sse.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "double_conversion",
|
name = "double_conversion",
|
||||||
|
|
|
||||||
2
third_party/absl/workspace.bzl
vendored
2
third_party/absl/workspace.bzl
vendored
|
|
@ -6,8 +6,10 @@ def repo():
|
||||||
"""Imports absl."""
|
"""Imports absl."""
|
||||||
|
|
||||||
# Attention: tools parse and update these lines.
|
# Attention: tools parse and update these lines.
|
||||||
|
# LINT.IfChange
|
||||||
ABSL_COMMIT = "997aaf3a28308eba1b9156aa35ab7bca9688e9f6"
|
ABSL_COMMIT = "997aaf3a28308eba1b9156aa35ab7bca9688e9f6"
|
||||||
ABSL_SHA256 = "35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
|
ABSL_SHA256 = "35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/abseil-cpp.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "com_google_absl",
|
name = "com_google_absl",
|
||||||
|
|
|
||||||
2
third_party/eigen3/workspace.bzl
vendored
2
third_party/eigen3/workspace.bzl
vendored
|
|
@ -6,8 +6,10 @@ def repo():
|
||||||
"""Imports Eigen."""
|
"""Imports Eigen."""
|
||||||
|
|
||||||
# Attention: tools parse and update these lines.
|
# Attention: tools parse and update these lines.
|
||||||
|
# LINT.IfChange
|
||||||
EIGEN_COMMIT = "7b35638ddb99a0298c5d3450de506a8e8e0203d3"
|
EIGEN_COMMIT = "7b35638ddb99a0298c5d3450de506a8e8e0203d3"
|
||||||
EIGEN_SHA256 = "2f25d7d0279c57ce7c533bc71ba78af9c24a0a0aac4102bfeb28c2b5737499d1"
|
EIGEN_SHA256 = "2f25d7d0279c57ce7c533bc71ba78af9c24a0a0aac4102bfeb28c2b5737499d1"
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/eigen.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "eigen_archive",
|
name = "eigen_archive",
|
||||||
|
|
|
||||||
2
third_party/farmhash/workspace.bzl
vendored
2
third_party/farmhash/workspace.bzl
vendored
|
|
@ -6,8 +6,10 @@ def repo():
|
||||||
"""Imports farmhash."""
|
"""Imports farmhash."""
|
||||||
|
|
||||||
# Attention: tools parse and update these lines.
|
# Attention: tools parse and update these lines.
|
||||||
|
# LINT.IfChange
|
||||||
FARMHASH_COMMIT = "816a4ae622e964763ca0862d9dbd19324a1eaf45"
|
FARMHASH_COMMIT = "816a4ae622e964763ca0862d9dbd19324a1eaf45"
|
||||||
FARMHASH_SHA256 = "6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0"
|
FARMHASH_SHA256 = "6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0"
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/farmhash.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "farmhash_archive",
|
name = "farmhash_archive",
|
||||||
|
|
|
||||||
2
third_party/gemmlowp/workspace.bzl
vendored
2
third_party/gemmlowp/workspace.bzl
vendored
|
|
@ -6,8 +6,10 @@ def repo():
|
||||||
"""Imports gemmlowp."""
|
"""Imports gemmlowp."""
|
||||||
|
|
||||||
# Attention: tools parse and update these lines.
|
# Attention: tools parse and update these lines.
|
||||||
|
# LINT.IfChange
|
||||||
GEMMLOWP_COMMIT = "fda83bdc38b118cc6b56753bd540caa49e570745"
|
GEMMLOWP_COMMIT = "fda83bdc38b118cc6b56753bd540caa49e570745"
|
||||||
GEMMLOWP_SHA256 = "43146e6f56cb5218a8caaab6b5d1601a083f1f31c06ff474a4378a7d35be9cfb"
|
GEMMLOWP_SHA256 = "43146e6f56cb5218a8caaab6b5d1601a083f1f31c06ff474a4378a7d35be9cfb"
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/gemmlowp.cmake)
|
||||||
|
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "gemmlowp",
|
name = "gemmlowp",
|
||||||
|
|
|
||||||
2
third_party/opencl_headers/workspace.bzl
vendored
2
third_party/opencl_headers/workspace.bzl
vendored
|
|
@ -5,11 +5,13 @@ load("//third_party:repo.bzl", "tf_http_archive")
|
||||||
def repo():
|
def repo():
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "opencl_headers",
|
name = "opencl_headers",
|
||||||
|
# LINT.IfChange
|
||||||
strip_prefix = "OpenCL-Headers-0d5f18c6e7196863bc1557a693f1509adfcee056",
|
strip_prefix = "OpenCL-Headers-0d5f18c6e7196863bc1557a693f1509adfcee056",
|
||||||
sha256 = "03cbc1fd449399be0422cdb021400f63958ef2c5a7c099a0d8f36a705b312f53",
|
sha256 = "03cbc1fd449399be0422cdb021400f63958ef2c5a7c099a0d8f36a705b312f53",
|
||||||
urls = [
|
urls = [
|
||||||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/KhronosGroup/OpenCL-Headers/archive/0d5f18c6e7196863bc1557a693f1509adfcee056.tar.gz",
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/KhronosGroup/OpenCL-Headers/archive/0d5f18c6e7196863bc1557a693f1509adfcee056.tar.gz",
|
||||||
"https://github.com/KhronosGroup/OpenCL-Headers/archive/0d5f18c6e7196863bc1557a693f1509adfcee056.tar.gz",
|
"https://github.com/KhronosGroup/OpenCL-Headers/archive/0d5f18c6e7196863bc1557a693f1509adfcee056.tar.gz",
|
||||||
],
|
],
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/opencl_headers.cmake)
|
||||||
build_file = "//third_party/opencl_headers:BUILD.bazel",
|
build_file = "//third_party/opencl_headers:BUILD.bazel",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
third_party/ruy/workspace.bzl
vendored
2
third_party/ruy/workspace.bzl
vendored
|
|
@ -5,11 +5,13 @@ load("//third_party:repo.bzl", "tf_http_archive")
|
||||||
def repo():
|
def repo():
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "ruy",
|
name = "ruy",
|
||||||
|
# LINT.IfChange
|
||||||
sha256 = "fa9a0b9041095817bc3533f7b125c3b4044570c0b3ee6c436d2d29dae001c06b",
|
sha256 = "fa9a0b9041095817bc3533f7b125c3b4044570c0b3ee6c436d2d29dae001c06b",
|
||||||
strip_prefix = "ruy-e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce",
|
strip_prefix = "ruy-e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce",
|
||||||
urls = [
|
urls = [
|
||||||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/ruy/archive/e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip",
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/ruy/archive/e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip",
|
||||||
"https://github.com/google/ruy/archive/e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip",
|
"https://github.com/google/ruy/archive/e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce.zip",
|
||||||
],
|
],
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/ruy.cmake)
|
||||||
build_file = "//third_party/ruy:BUILD",
|
build_file = "//third_party/ruy:BUILD",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
third_party/vulkan_headers/workspace.bzl
vendored
2
third_party/vulkan_headers/workspace.bzl
vendored
|
|
@ -5,6 +5,7 @@ load("//third_party:repo.bzl", "tf_http_archive")
|
||||||
def repo():
|
def repo():
|
||||||
tf_http_archive(
|
tf_http_archive(
|
||||||
name = "vulkan_headers",
|
name = "vulkan_headers",
|
||||||
|
# LINT.IfChange
|
||||||
strip_prefix = "Vulkan-Headers-ec2db85225ab410bc6829251bef6c578aaed5868",
|
strip_prefix = "Vulkan-Headers-ec2db85225ab410bc6829251bef6c578aaed5868",
|
||||||
sha256 = "38febe63d53f9c91e90adb1ecd3df0cc0ea834e3a89d96c4fb5961d1cd6dd65e",
|
sha256 = "38febe63d53f9c91e90adb1ecd3df0cc0ea834e3a89d96c4fb5961d1cd6dd65e",
|
||||||
link_files = {
|
link_files = {
|
||||||
|
|
@ -14,5 +15,6 @@ def repo():
|
||||||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/KhronosGroup/Vulkan-Headers/archive/ec2db85225ab410bc6829251bef6c578aaed5868.tar.gz",
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/KhronosGroup/Vulkan-Headers/archive/ec2db85225ab410bc6829251bef6c578aaed5868.tar.gz",
|
||||||
"https://github.com/KhronosGroup/Vulkan-Headers/archive/ec2db85225ab410bc6829251bef6c578aaed5868.tar.gz",
|
"https://github.com/KhronosGroup/Vulkan-Headers/archive/ec2db85225ab410bc6829251bef6c578aaed5868.tar.gz",
|
||||||
],
|
],
|
||||||
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/vulkan_headers.cmake)
|
||||||
build_file = "//third_party/vulkan_headers:BUILD.bazel",
|
build_file = "//third_party/vulkan_headers:BUILD.bazel",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user