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
@@ -0,0 +1,45 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_static_framework")
load("//tensorflow/lite/ios:ios.bzl", "TFL_MINIMUM_OS_VERSION", "strip_common_include_path_prefix")
package(
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
licenses = ["notice"],
)
strip_common_include_path_prefix(
name = "strip_common_include_path_benchmark",
hdr_labels = [
"//tensorflow/lite/core/c:c_api_types.h",
"//tensorflow/lite/tools:logging.h",
"//tensorflow/lite/tools/benchmark/experimental/c:benchmark_c_api.h",
],
)
# Main target for the benchmark tool iOS framework.
# bazel build --config=ios_fat -c opt //tensorflow/lite/tools/benchmark/experimental/ios:TensorFlowLiteBenchmarkC_framework
ios_static_framework(
name = "TensorFlowLiteBenchmarkC_framework",
hdrs = [
":benchmark_c_api.h",
":c_api_types.h",
":logging.h",
],
bundle_name = "TensorFlowLiteBenchmarkC",
minimum_os_version = TFL_MINIMUM_OS_VERSION,
deps = [
"//tensorflow/lite/tools/benchmark/experimental/c:benchmark_c_api",
],
)
# Used for building TensorFlowLiteBenchmarkC_framework framework.
build_test(
name = "framework_build_test",
tags = [
"nomsan", # b/145205324
"notsan", # b/145205324
],
targets = [
":TensorFlowLiteBenchmarkC_framework",
],
)