chore: import upstream snapshot with attribution
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s

This commit is contained in:
wehub-resource-sync
2026-07-13 12:14:16 +08:00
commit 8a852e4b4e
36502 changed files with 9277225 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# copybara:uncomment package(default_applicable_licenses = ["//tensorflow:license"])
+137
View File
@@ -0,0 +1,137 @@
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
package(default_visibility = [
"//visibility:public",
])
licenses([
"notice", # BSD-3-Clause-Clear
])
exports_files(glob(["hexagon/**/*.so"]))
#Just header file, needed for data types in the interface.
cc_library(
name = "hexagon_nn_header",
hdrs = [
"@hexagon_nn//:hexagon/hexagon_nn.h",
],
tags = [
"manual",
"nobuilder",
],
)
cc_library(
name = "hexagon_nn_ops",
hdrs = [
"@hexagon_nn//:hexagon/hexagon_nn_ops.h",
"@hexagon_nn//:hexagon/ops.def",
],
tags = [
"manual",
"nobuilder",
],
)
cc_library(
name = "remote",
hdrs = [
"@hexagon_nn//:hexagon/remote.h",
"@hexagon_nn//:hexagon/remote64.h",
],
tags = [
"manual",
"nobuilder",
],
)
cc_library(
name = "rpcmem",
srcs = [
"@hexagon_nn//:hexagon/rpcmem_stub.c",
],
hdrs = [
"@hexagon_nn//:hexagon/rpcmem.h",
],
deps = [
":AEEStdDef",
],
)
cc_library(
name = "hexagon_soc",
hdrs = [
"@hexagon_nn//:hexagon/hexnn_soc_defines.h",
],
tags = [
"manual",
"nobuilder",
],
)
cc_library(
name = "AEEStdDef",
hdrs = [
"@hexagon_nn//:hexagon/AEEStdDef.h",
],
tags = [
"manual",
"nobuilder",
],
)
cc_library(
name = "AEEStdErr",
hdrs = [
"@hexagon_nn//:hexagon/AEEStdErr.h",
],
)
# The files are included in another .c files, so we add the src files as textual_hdrs
# to avoid compiling them and have linking errors for multiple symbols.
cc_library(
name = "hexagon_stub",
textual_hdrs = [
"@hexagon_nn//:hexagon/hexagon_nn_domains_stub.c",
"@hexagon_nn//:hexagon/hexagon_nn_stub.c",
],
)
# This rule uses the smart/graph wrapper interfaces.
cc_library(
name = "hexagon_nn",
srcs = [
"@hexagon_nn//:hexagon/hexagon_nn.h",
"@hexagon_nn//:hexagon/hexnn_dsp_api.h",
"@hexagon_nn//:hexagon/hexnn_dsp_api_impl.c",
"@hexagon_nn//:hexagon/hexnn_dsp_domains_api.h",
"@hexagon_nn//:hexagon/hexnn_dsp_domains_api_impl.c",
"@hexagon_nn//:hexagon/hexnn_dsp_smart_wrapper_api.c",
"@hexagon_nn//:hexagon/hexnn_dsp_smart_wrapper_api.h",
"@hexagon_nn//:hexagon/hexnn_graph_wrapper.cpp",
"@hexagon_nn//:hexagon/hexnn_graph_wrapper.hpp",
"@hexagon_nn//:hexagon/hexnn_graph_wrapper_interface.h",
"@hexagon_nn//:hexagon/hexnn_soc_defines.h",
],
deps = [
":AEEStdErr",
":hexagon_stub",
":remote",
":rpcmem",
],
alwayslink = 1,
)
+17
View File
@@ -0,0 +1,17 @@
"""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.0.1 Only with the current version.
# This comment will be updated with compatible version.
def repo():
tf_http_archive(
name = "hexagon_nn",
sha256 = "f577b4c150b72e11e9dfb3f9d14f9772ba8fe460f7d65c84a7327ea9bef44d8e",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/storage.cloud.google.com/download.tensorflow.org/tflite/hexagon_nn_headers_v1.20.0.9.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.9.tgz",
],
build_file = "//third_party/hexagon:hexagon.BUILD",
)