Replace calls to `third_party_http_archive` with calls to `tf_http_archive` alias. Disable 'mirror.tensorflow.org' check. A number of users don't seem to follow the requirements, which were not checked correctly before. This wasn't discovered by presubmits because the check is in the repo rule, which only triggers if the repo is actually used. PiperOrigin-RevId: 359355039 Change-Id: Ieddab6fd91b96e6e22afccdad21c8fa30b795ff4
18 lines
913 B
Python
18 lines
913 B
Python
"""Loads the Hexagon NN Header files library, used by TF Lite."""
|
|
|
|
load("//third_party:repo.bzl", "tf_http_archive")
|
|
|
|
# Note: Use libhexagon_nn_skel version 1.20 Only with the current version.
|
|
# This comment will be updated with compatible version.
|
|
def repo():
|
|
tf_http_archive(
|
|
name = "hexagon_nn",
|
|
sha256 = "b94b653417a7eb871881438bb98cb2f4a652d4d92ff90f1faaa01a8ce82b2e3c",
|
|
urls = [
|
|
"https://storage.googleapis.com/mirror.tensorflow.org/storage.cloud.google.com/download.tensorflow.org/tflite/hexagon_nn_headers_v1.20.0.1.tgz",
|
|
# Repeated to bypass 'at least two urls' check. TODO(karimnosseir): add original source of this package.
|
|
"https://storage.googleapis.com/mirror.tensorflow.org/storage.cloud.google.com/download.tensorflow.org/tflite/hexagon_nn_headers_v1.20.0.1.tgz",
|
|
],
|
|
build_file = "//third_party/hexagon:BUILD",
|
|
)
|