Files
wehub-resource-sync 8a852e4b4e
cffconvert / validate (push) Has been skipped
License Check / license-check (push) Failing after 2s
chore: import upstream snapshot with attribution
2026-07-13 12:14:16 +08:00

49 lines
1.4 KiB
Python

load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("//tensorflow:tensorflow.default.bzl", "get_compatible_with_portable")
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:LICENSE"],
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)
cc_library(
name = "ynnpack_delegate",
srcs = [
"copy.cc",
"copy.h",
"dot.cc",
"dot.h",
"elementwise.cc",
"elementwise.h",
"pooling.cc",
"pooling.h",
"reduction.cc",
"reduction.h",
"softmax.cc",
"softmax.h",
"utils.cc",
"utils.h",
"ynnpack_delegate.cc",
],
hdrs = ["ynnpack_delegate.h"],
compatible_with = get_compatible_with_portable(),
copts = tflite_copts(),
linkstatic = True,
deps = [
"//tensorflow/lite:builtin_ops",
"//tensorflow/lite:minimal_logging",
"//tensorflow/lite/core/c:common",
"//tensorflow/lite/delegates/utils:simple_delegate",
"//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/types:half",
"@XNNPACK//ynnpack",
"@XNNPACK//ynnpack/composites",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/types:span",
"@slinky//slinky/base:thread_pool",
"@slinky//slinky/base:thread_pool_impl",
],
)