| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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_applicable_licenses: ["external_tensorflow_license"], | |
| default_team: "trendy_team_machine_learning", | |
| } | |
| // Added automatically by a large-scale-change that took the approach of | |
| // 'apply every license found to every target'. While this makes sure we respect | |
| // every license restriction, it may not be entirely correct. | |
| // | |
| // e.g. GPL in an MIT project might only apply to the contrib/ directory. | |
| // | |
| // Please consider splitting the single license below into multiple licenses, | |
| // taking care not to lose any license_kind information, and overriding the | |
| // default license using the 'licenses: [...]' property on targets as needed. | |
| // | |
| // For unused files, consider creating a 'fileGroup' with "//visibility:private" | |
| // to attach the license to, and including a comment whether the files may be | |
| // used in the current project. | |
| // | |
| // large-scale-change included anything that looked like it might be a license | |
| // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. | |
| // | |
| // Please consider removing redundant or irrelevant files from 'license_text:'. | |
| // | |
| // large-scale-change filtered out the below license kinds as false-positives: | |
| // SPDX-license-identifier-CC-BY-SA | |
| // SPDX-license-identifier-MPL-2.0 | |
| // See: http://go/android-license-faq | |
| license { | |
| name: "external_tensorflow_license", | |
| visibility: [":__subpackages__"], | |
| license_kinds: [ | |
| "SPDX-license-identifier-Apache-2.0", | |
| "SPDX-license-identifier-BSD", | |
| "SPDX-license-identifier-MIT", | |
| "legacy_unencumbered", | |
| ], | |
| license_text: [ | |
| "LICENSE", | |
| ], | |
| } | |
| TF_ABSL_LIBS = [ | |
| "absl_algorithm", | |
| "absl_base", | |
| "absl_base_core_headers", | |
| "absl_base_nullability", | |
| "absl_base_prefetch", | |
| "absl_cleanup", | |
| "absl_container_btree", | |
| "absl_container_flat_hash_map", | |
| "absl_container_flat_hash_set", | |
| "absl_container_node_hash_map", | |
| "absl_debugging_leak_check", | |
| "absl_functional_any_invocable", | |
| "absl_memory", | |
| "absl_status", | |
| "absl_status_statusor", | |
| "absl_strings", | |
| "absl_strings_cord", | |
| "absl_synchronization", | |
| "absl_time", | |
| "absl_types_optional", | |
| "absl_types_span", | |
| "absl_log", | |
| "absl_log_absl_check", | |
| "absl_log_absl_log", | |
| "absl_log_check", | |
| "absl_log_globals", | |
| ] | |
| cc_library_headers { | |
| name: "tensorflow_headers", | |
| export_include_dirs: [ | |
| ".", | |
| "third_party/xla", | |
| "third_party/xla/xla", | |
| "third_party/xla/third_party/tsl", | |
| ], | |
| header_libs: [ | |
| "ml_dtypes_headers", | |
| ], | |
| export_header_lib_headers: [ | |
| "ml_dtypes_headers", | |
| ], | |
| static_libs: TF_ABSL_LIBS, | |
| export_static_lib_headers: TF_ABSL_LIBS, | |
| generated_headers: [ | |
| "tensorflow_core_framework_registration_options", | |
| ], | |
| export_generated_headers: [ | |
| "tensorflow_core_framework_registration_options", | |
| ], | |
| vendor_available: true, | |
| product_available: true, | |
| host_supported: true, | |
| sdk_version: "current", | |
| min_sdk_version: "apex_inherit", | |
| apex_available: [ | |
| "//apex_available:platform", | |
| "com.android.extservices", | |
| "com.android.neuralnetworks", | |
| "com.android.adservices", | |
| "com.android.ondevicepersonalization", | |
| ], | |
| } | |
| genrule { | |
| name: "libtflite_mutable_schema", | |
| tools: ["flatc"], | |
| cmd: "$(location flatc) --cpp --no-union-value-namespacing --gen-object-api --gen-mutable --keep-prefix -o $$(dirname $(out)) $(in)", | |
| srcs: ["tensorflow/compiler/mlir/lite/schema/schema.fbs"], | |
| out: ["tensorflow/compiler/mlir/lite/schema/mutable/schema_generated.h"], | |
| } | |
| genrule { | |
| name: "libtflite_reflection_schema", | |
| tools: ["flatc"], | |
| cmd: "$(location flatc) --cpp --no-union-value-namespacing --reflect-types --reflect-names -o $$(dirname $(out)) $(in)", | |
| srcs: ["tensorflow/compiler/mlir/lite/schema/schema.fbs"], | |
| out: ["tensorflow/lite/schema/reflection/schema_generated.h"], | |
| } | |
| cc_binary_host { | |
| name: "tflite_option_writer_generator", | |
| srcs: ["tensorflow/lite/tools/serialization/option_writer_generator.cc"], | |
| generated_headers: ["libtflite_reflection_schema"], | |
| header_libs: ["flatbuffer_headers"], | |
| static_libs: ["libflatbuffers-cpp"], | |
| cflags: [ | |
| "-Wno-unused-parameter", | |
| "-Wno-unused-private-field", | |
| ], | |
| } | |
| genrule { | |
| name: "libtflite_option_writer_generated", | |
| tools: ["tflite_option_writer_generator"], | |
| cmd: "mkdir -p $$(dirname $(out)) && $(location tflite_option_writer_generator) $(out)", | |
| out: ["tensorflow/lite/tools/serialization/option_writer_generated.h"], | |
| } | |
| subdirs = ["tensorflow/lite"] | |
| filegroup { | |
| name: "tensorflow_tsl_logging_srcs", | |
| srcs: [ | |
| "third_party/xla/xla/tsl/platform/logging.cc", | |
| "third_party/xla/xla/tsl/platform/default/env_time.cc", | |
| ], | |
| } | |
| cc_library_static { | |
| name: "TfliteNnapiDelegateTests_static", | |
| srcs: [ | |
| "tensorflow/lite/delegates/nnapi/nnapi_delegate_test.cc", | |
| "tensorflow/lite/kernels/test_delegate_providers.cc", | |
| "tensorflow/lite/kernels/test_util.cc", | |
| "tensorflow/lite/tools/serialization/writer_lib.cc", | |
| "tensorflow/lite/kernels/acceleration_test_util.cc", | |
| "tensorflow/lite/kernels/acceleration_test_util_internal.cc", | |
| "tensorflow/lite/delegates/nnapi/acceleration_test_list.cc", | |
| "tensorflow/lite/delegates/nnapi/acceleration_test_util.cc", | |
| ], | |
| include_dirs: [ | |
| "external/abseil-cpp", | |
| "external/eigen", | |
| "external/flatbuffers/include", | |
| "external/FP16", | |
| "external/gemmlowp", | |
| "external/ruy", | |
| "external/tensorflow", | |
| "external/tensorflow/third_party/xla", | |
| "external/tensorflow/third_party/xla/xla", | |
| "external/tensorflow/third_party/xla/third_party/tsl", | |
| ], | |
| cflags: [ | |
| "-DPLATFORM_POSIX_ANDROID", | |
| "-Wno-extern-c-compat", | |
| "-Wno-unused-parameter", | |
| "-Wno-unused-private-field", | |
| "-Wno-nullability-completeness", | |
| ], | |
| shared_libs: [ | |
| "libandroid", | |
| "liblog", | |
| "libneuralnetworks", | |
| ], | |
| whole_static_libs: [ | |
| "libtflite_static", | |
| ] + TF_ABSL_LIBS, | |
| static_libs: [ | |
| "libgtest_ndk_c++", | |
| "libgmock_ndk", | |
| ], | |
| header_libs: [ | |
| "libeigen", | |
| "gemmlowp_headers", | |
| "libtflite_schema_headers", | |
| ], | |
| sdk_version: "current", | |
| stl: "c++_static", | |
| } | |
| cc_library_static { | |
| name: "libtflite_flex_delegate", | |
| srcs: [ | |
| ":tflite_src", | |
| ":tflite_flex_delegate", | |
| ":tensorflow_c_srcs", | |
| ":tensorflow_c_eager_srcs", | |
| ":tensorflow_core_data_mobile_srcs_no_runtime", | |
| ":tensorflow_core_kernels_mobile_srcs", | |
| ":tensorflow_core_common_runtime_mobile_srcs_only_runtime", | |
| ":tensorflow_core_framework_mobile_srcs_only_runtime", | |
| ":tensorflow_core_framework_mobile_srcs_no_runtime", | |
| ":tensorflow_core_graph_mobile_srcs_only_runtime", | |
| ":tensorflow_core_util_mobile_srcs_no_runtime", | |
| ":tensorflow_core_util_mobile_srcs_only_runtime", | |
| ":tensorflow_core_platform_mobile_srcs_no_runtime", | |
| ":tensorflow_core_platform_mobile_srcs_only_runtime", | |
| ":tensorflow_core_profiler_mobile_srcs_no_runtime", | |
| ":tensorflow_core_tfrt_fallback_op_kernel_runner", | |
| ":tensorflow_tsl_platform_default_mobile_srcs_no_runtime", | |
| ":tensorflow_tsl_platform_default_mobile_srcs_only_runtime", | |
| ":tensorflow_core_lib_io_mobile_src_only_runtime", | |
| ":tensorflow_core_lib_mobile_src_only_runtime", | |
| ":tensorflow_core_lib_mobile_src_no_runtime", | |
| "tensorflow/core/nccl/collective_communicator.cc", | |
| "tensorflow/core/example/feature_util.cc", | |
| "tensorflow/core/ops/no_op.cc", | |
| "tensorflow/core/ops/array_ops.cc", | |
| "tensorflow/core/ops/parsing_ops.cc", | |
| "tensorflow/core/ops/dataset_ops.cc", | |
| "tensorflow/core/ops/function_ops.cc", | |
| "tensorflow/core/ops/io_ops.cc", | |
| "tensorflow/core/ops/nn_ops.cc", | |
| "tensorflow/core/ops/string_ops.cc", | |
| "tensorflow/core/lib/wav/wav_io.cc", | |
| "tensorflow/compiler/jit/defs.cc", | |
| "tensorflow/core/data/compression_utils.cc", | |
| "tensorflow/core/graph/graph_debug_info_builder.cc", | |
| "third_party/xla/xla/tsl/c/tsl_status.cc", | |
| "third_party/xla/xla/tsl/c/tsl_status_helper.cc", | |
| "third_party/xla/xla/tsl/framework/device_type.cc", | |
| "tensorflow/core/config/flags.cc", | |
| "tensorflow/core/config/flag_defs.cc", | |
| "tensorflow/core/util/tensor_bundle/byte_swap_tensor.cc", | |
| "tensorflow/core/util/debug_data_dumper.cc", | |
| "third_party/xla/xla/tsl/framework/allocator.cc", | |
| "third_party/xla/xla/tsl/framework/allocator_registry.cc", | |
| "third_party/xla/xla/tsl/framework/allocator_retry.cc", | |
| "third_party/xla/xla/tsl/framework/bfc_allocator.cc", | |
| "third_party/xla/xla/tsl/framework/tracking_allocator.cc", | |
| "third_party/xla/xla/tsl/platform/env.cc", | |
| "third_party/xla/xla/tsl/platform/file_system.cc", | |
| "third_party/xla/xla/tsl/platform/file_system_helper.cc", | |
| "tensorflow/core/data/global_shuffle_utils.cc", | |
| "tensorflow/core/data/tf_data_memory_logger.cc", | |
| "tensorflow/core/data/tfdataz_metrics.cc", | |
| "third_party/xla/third_party/tsl/tsl/profiler/lib/nvtx_utils_stub.cc", | |
| "third_party/xla/xla/tsl/framework/metrics.cc", | |
| "third_party/xla/xla/tsl/platform/default/error_logging.cc", | |
| "third_party/xla/xla/tsl/platform/numa_noop.cc", | |
| "third_party/xla/xla/tsl/util/byte_swap_array.cc", | |
| ], | |
| export_include_dirs: ["."], | |
| whole_static_libs: [ | |
| "libdoubleconversion", | |
| "libfft2d", | |
| "libregex_re2", | |
| "libruy_static", | |
| "libtextclassifier_hash_static", | |
| "tensorflow_core_proto_cpp_lite", | |
| ] + TF_ABSL_LIBS, | |
| // Export Abseil include paths to support public status and logging check assertions in TFLite delegate APIs. | |
| export_static_lib_headers: TF_ABSL_LIBS, | |
| header_libs: [ | |
| "flatbuffer_headers", | |
| "fp16_headers", | |
| "jni_headers", | |
| "libeigen", | |
| "liblog_headers", | |
| "libtextclassifier_hash_headers", | |
| "ml_dtypes_headers", | |
| ], | |
| // Export ml_dtypes include paths because public TSL platform headers (tsl/platform/ml_dtypes.h) directly include float8.h. | |
| export_header_lib_headers: [ | |
| "ml_dtypes_headers", | |
| ], | |
| generated_headers: [ | |
| "libtflite_mutable_schema", | |
| "tflite_internal_cc_protos", | |
| "tensorflow_core_framework_registration_options", | |
| "tf2xla_proto_cpp_lite", | |
| "tensorflow_core_base_proto_cpp_lite", | |
| "tensorflow_core_proto_cpp_lite", | |
| ], | |
| export_generated_headers: [ | |
| "tensorflow_core_framework_registration_options", | |
| ], | |
| shared_libs: [ | |
| "libz", | |
| ], | |
| // Include global external/ paths to resolve upstream third-party headers (e.g., <farmhash.h>) without modifying C++ sources. | |
| include_dirs: [ | |
| "external/gemmlowp", | |
| "external/neon_2_sse", | |
| "external/abseil-cpp", | |
| "external/libtextclassifier/native/utils/hash/", | |
| ], | |
| cflags: [ | |
| "-DNAMESPACE_FOR_HASH_FUNCTIONS=farmhash", | |
| "-DTF_ANDROID_ENABLE_LOGSINK", | |
| "-DPLATFORM_POSIX_ANDROID", | |
| "-DENABLE_ABSL_IN_TENSORFLOW", | |
| "-DIS_MOBILE_PLATFORM", | |
| "-DTF_ANDROID_ENABLE_LOG_EVERY_N_SECONDS", | |
| // Used to support int64, string type in //tensorflow/core/framework/register_types.h. | |
| "-D__ANDROID_TYPES_FULL__", | |
| // This code uses malloc_usable_size(), | |
| // and thus can't be built with _FORTIFY_SOURCE=3. | |
| "-U_FORTIFY_SOURCE", | |
| "-D_FORTIFY_SOURCE=2", | |
| "-Wno-defaulted-function-deleted", | |
| "-Wno-expansion-to-defined", | |
| "-Wno-gnu-inline-cpp-without-extern", | |
| "-Wno-ignored-qualifiers", | |
| "-Wno-mismatched-tags", | |
| "-Wno-user-defined-warnings", | |
| "-Wno-range-loop-construct", | |
| "-Wno-nullability-completeness", | |
| ], | |
| stl: "libc++_static", | |
| min_sdk_version: "33", | |
| sdk_version: "current", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| cc_library_static { | |
| name: "tflite_configuration_proto", | |
| proto: { | |
| type: "lite", | |
| canonical_path_from_root: false, | |
| export_proto_headers: true, | |
| }, | |
| stl: "libc++", | |
| srcs: [ | |
| "tensorflow/lite/acceleration/configuration/**/*.proto", | |
| "tensorflow/lite/experimental/acceleration/configuration/**/*.proto", | |
| ], | |
| sdk_version: "current", | |
| min_sdk_version: "30", | |
| apex_available: [ | |
| "com.android.adservices", | |
| "com.android.extservices", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_protobuf_src", | |
| srcs: [ | |
| "tensorflow/core/protobuf/bfc_memory_map.proto", | |
| "tensorflow/core/protobuf/config.proto", | |
| "tensorflow/core/protobuf/cluster.proto", | |
| "tensorflow/core/protobuf/debug.proto", | |
| "tensorflow/core/protobuf/device_filters.proto", | |
| "tensorflow/core/protobuf/device_properties.proto", | |
| "tensorflow/core/protobuf/data_service.proto", | |
| "tensorflow/core/protobuf/debug_event.proto", | |
| "tensorflow/core/protobuf/eager_service.proto", | |
| "tensorflow/core/framework/graph_debug_info.proto", | |
| "tensorflow/core/protobuf/queue_runner.proto", | |
| "tensorflow/core/protobuf/rewriter_config.proto", | |
| "tensorflow/core/protobuf/rpc_options.proto", | |
| "tensorflow/core/protobuf/tensor_bundle.proto", | |
| "tensorflow/core/protobuf/saver.proto", | |
| "tensorflow/core/protobuf/verifier_config.proto", | |
| "tensorflow/core/protobuf/error_codes.proto", | |
| "tensorflow/core/protobuf/composite_tensor_variant.proto", | |
| "tensorflow/core/protobuf/master.proto", | |
| "tensorflow/core/protobuf/meta_graph.proto", | |
| "tensorflow/core/protobuf/named_tensor.proto", | |
| "tensorflow/core/protobuf/remote_tensor_handle.proto", | |
| "tensorflow/core/protobuf/saved_model.proto", | |
| "tensorflow/core/protobuf/saved_object_graph.proto", | |
| "tensorflow/core/protobuf/status.proto", | |
| "tensorflow/core/protobuf/struct.proto", | |
| "tensorflow/core/protobuf/worker.proto", | |
| "tensorflow/core/protobuf/tensorflow_server.proto", | |
| "tensorflow/core/protobuf/trackable_object_graph.proto", | |
| "tensorflow/core/protobuf/transport_options.proto", | |
| "tensorflow/core/grappler/costs/op_performance_data.proto", | |
| ], | |
| } | |
| cc_library_static { | |
| name: "tensorflow_core_base_proto_cpp_lite", | |
| proto: { | |
| export_proto_headers: true, | |
| canonical_path_from_root: false, | |
| type: "lite", | |
| include_dirs: ["external/protobuf/src"], | |
| local_include_dirs: [ | |
| "third_party/xla/third_party/tsl", | |
| "third_party/xla", | |
| ".", | |
| ], | |
| }, | |
| srcs: [ | |
| "tensorflow/core/framework/*.proto", | |
| "tensorflow/core/example/example.proto", | |
| "tensorflow/core/example/feature.proto", | |
| "tensorflow/core/example/example_parser_configuration.proto", | |
| "tensorflow/core/profiler/profiler_options.proto", | |
| "tensorflow/core/util/saved_tensor_slice.proto", | |
| "tensorflow/core/util/event.proto", | |
| ":tensorflow_core_protobuf_src", | |
| ":libprotobuf-internal-protos", | |
| ], | |
| shared_libs: [ | |
| "liblog", | |
| ], | |
| static_libs: [ | |
| "libprotobuf-cpp-lite-ndk", | |
| "xla_tsl_proto_cpp_lite", | |
| "tsl_profiler_proto_cpp_lite", | |
| ], | |
| export_static_lib_headers: [ | |
| "xla_tsl_proto_cpp_lite", | |
| "tsl_profiler_proto_cpp_lite", | |
| ], | |
| sdk_version: "current", | |
| local_include_dirs: [ | |
| ".", | |
| "third_party/xla", | |
| "third_party/xla/third_party/tsl", | |
| ], | |
| export_include_dirs: [ | |
| ".", | |
| "third_party/xla", | |
| "third_party/xla/third_party/tsl", | |
| ], | |
| stl: "libc++_static", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| cc_library_static { | |
| name: "tf2xla_proto_cpp_lite", | |
| proto: { | |
| export_proto_headers: true, | |
| canonical_path_from_root: false, | |
| type: "lite", | |
| include_dirs: [ | |
| "external/protobuf/src", | |
| "external/tensorflow", | |
| "external/tensorflow/third_party/xla", | |
| ], | |
| }, | |
| stl: "libc++_static", | |
| srcs: ["tensorflow/compiler/tf2xla/*.proto"], | |
| static_libs: [ | |
| "xla_tsl_proto_cpp_lite", | |
| "tensorflow_core_base_proto_cpp_lite", | |
| ], | |
| export_static_lib_headers: [ | |
| "xla_tsl_proto_cpp_lite", | |
| "tensorflow_core_base_proto_cpp_lite", | |
| ], | |
| sdk_version: "current", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| java_library_static { | |
| name: "tf2xla_proto_java_lite", | |
| srcs: ["tensorflow/compiler/tf2xla/*.proto"], | |
| proto: { | |
| canonical_path_from_root: false, | |
| include_dirs: [ | |
| "external/protobuf/src", | |
| "external/protobuf/java", | |
| "external/tensorflow", | |
| "external/tensorflow/third_party/xla", | |
| ], | |
| type: "lite", | |
| }, | |
| static_libs: [ | |
| "xla_tsl_proto_java_lite", | |
| "tensorflow_core_base_proto_java_lite", | |
| ], | |
| sdk_version: "current", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| cc_library_static { | |
| name: "tensorflow_core_proto_cpp_lite", | |
| shared_libs: [ | |
| "liblog", | |
| ], | |
| // Re-pack constituent protobuf archives into this umbrella library so downstream consumers receive generated message symbols (.o files) without an empty archive. | |
| whole_static_libs: [ | |
| "libprotobuf-cpp-lite-ndk", | |
| "tensorflow_core_base_proto_cpp_lite", | |
| "xla_tsl_proto_cpp_lite", | |
| "tsl_profiler_proto_cpp_lite", | |
| "tf2xla_proto_cpp_lite", | |
| ], | |
| export_static_lib_headers: [ | |
| "tensorflow_core_base_proto_cpp_lite", | |
| "xla_tsl_proto_cpp_lite", | |
| "tsl_profiler_proto_cpp_lite", | |
| "tf2xla_proto_cpp_lite", | |
| ], | |
| sdk_version: "current", | |
| local_include_dirs: [ | |
| ".", | |
| "third_party/xla", | |
| "third_party/xla/third_party/tsl", | |
| ], | |
| export_include_dirs: [ | |
| ".", | |
| "third_party/xla", | |
| "third_party/xla/third_party/tsl", | |
| ], | |
| stl: "libc++_static", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| java_library_static { | |
| name: "tensorflow_core_base_proto_java_lite", | |
| srcs: [ | |
| "tensorflow/core/framework/*.proto", | |
| "tensorflow/core/example/example.proto", | |
| "tensorflow/core/example/feature.proto", | |
| "tensorflow/core/example/example_parser_configuration.proto", | |
| "tensorflow/core/profiler/profiler_options.proto", | |
| "tensorflow/core/util/saved_tensor_slice.proto", | |
| "tensorflow/core/util/event.proto", | |
| ":tensorflow_core_protobuf_src", | |
| ], | |
| proto: { | |
| canonical_path_from_root: false, | |
| include_dirs: [ | |
| "external/protobuf/src", | |
| "external/protobuf/java", | |
| ], | |
| type: "lite", | |
| local_include_dirs: [ | |
| "third_party/xla/third_party/tsl", | |
| "third_party/xla", | |
| ".", | |
| ], | |
| }, | |
| static_libs: [ | |
| "libprotobuf-java-lite", | |
| "xla_tsl_proto_java_lite", | |
| "tsl_profiler_proto_java_lite", | |
| ], | |
| sdk_version: "current", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| java_library_static { | |
| name: "tensorflow_core_proto_java_lite", | |
| static_libs: [ | |
| "libprotobuf-java-lite", | |
| "tensorflow_core_base_proto_java_lite", | |
| "xla_tsl_proto_java_lite", | |
| "tsl_profiler_proto_java_lite", | |
| "tf2xla_proto_java_lite", | |
| ], | |
| sdk_version: "current", | |
| min_sdk_version: "33", | |
| apex_available: ["com.android.ondevicepersonalization"], | |
| } | |
| // Clients that want to link in custom ops/delegates need to manually link in the JNI bridge | |
| // to their own custom shared libraries. | |
| filegroup { | |
| name: "tensorflowlite_jni_src", | |
| srcs: ["tensorflow/lite/java/src/main/native/*.cc"], | |
| visibility: [ | |
| "//packages/modules/OnDevicePersonalization:__subpackages__", | |
| ], | |
| } | |
| filegroup { | |
| name: "tflite_src", | |
| srcs: [ | |
| ":tensorflow_tsl_logging_srcs", | |
| "tensorflow/compiler/mlir/lite/allocation.cc", | |
| "tensorflow/lite/arena_planner.cc", | |
| "tensorflow/lite/core/c/common.cc", | |
| "tensorflow/lite/core/c/c_api.cc", | |
| "tensorflow/lite/core/c/c_api_experimental.cc", | |
| "tensorflow/lite/core/c/c_api_opaque.cc", | |
| "tensorflow/lite/core/c/operator.cc", | |
| "tensorflow/lite/core/create_op_resolver_with_builtin_ops.cc", | |
| "tensorflow/lite/delegates/interpreter_utils.cc", | |
| "tensorflow/lite/kernels/control_flow_common.cc", | |
| "tensorflow/lite/kernels/stablehlo_elementwise.cc", | |
| "tensorflow/lite/kernels/rng_util.cc", | |
| "tensorflow/lite/kernels/tensor_slice_util.cc", | |
| "tensorflow/lite/kernels/internal/optimized/4bit/fully_connected_reference.cc", | |
| "tensorflow/lite/kernels/bitcast.cc", | |
| "tensorflow/lite/kernels/bitwise_xor.cc", | |
| "tensorflow/lite/kernels/dilate.cc", | |
| "tensorflow/lite/kernels/right_shift.cc", | |
| "tensorflow/lite/kernels/rng_bit_generator.cc", | |
| "tensorflow/lite/kernels/stablehlo_add.cc", | |
| "tensorflow/lite/kernels/stablehlo_and.cc", | |
| "tensorflow/lite/kernels/stablehlo_case.cc", | |
| "tensorflow/lite/kernels/stablehlo_composite.cc", | |
| "tensorflow/lite/kernels/stablehlo_gather.cc", | |
| "tensorflow/lite/kernels/stablehlo_min_max.cc", | |
| "tensorflow/lite/kernels/stablehlo_multiply.cc", | |
| "tensorflow/lite/kernels/stablehlo_pad.cc", | |
| "tensorflow/lite/kernels/stablehlo_reduce_window.cc", | |
| "tensorflow/lite/kernels/stablehlo_scatter.cc", | |
| "tensorflow/lite/kernels/stablehlo_shift_left.cc", | |
| "tensorflow/lite/kernels/internal/common.cc", | |
| "tensorflow/lite/kernels/internal/portable_tensor_utils.cc", | |
| "tensorflow/lite/kernels/internal/reference/comparisons.cc", | |
| "tensorflow/lite/array.cc", | |
| "tensorflow/lite/profiling/telemetry/telemetry.cc", | |
| "tensorflow/lite/profiling/telemetry/profiler.cc", | |
| "tensorflow/lite/profiling/telemetry/c/telemetry_setting_internal.cc", | |
| "tensorflow/lite/core/async/async_signature_runner.cc", | |
| "tensorflow/lite/core/async/async_subgraph.cc", | |
| "tensorflow/lite/core/async/task_internal.cc", | |
| "tensorflow/lite/core/async/c/async_kernel.cc", | |
| "tensorflow/lite/core/async/c/task.cc", | |
| "tensorflow/lite/core/async/c/async_signature_runner.cc", | |
| "tensorflow/lite/core/async/interop/attribute_map_internal.cc", | |
| "tensorflow/lite/core/async/interop/variant.cc", | |
| "tensorflow/lite/core/async/interop/reconcile_fns.cc", | |
| "tensorflow/lite/core/async/interop/c/attribute_map.cc", | |
| "tensorflow/lite/core/async/interop/c/constants.cc", | |
| "tensorflow/lite/core/async/interop/c/types.cc", | |
| "tensorflow/lite/c/common_internal.cc", | |
| "tensorflow/lite/c/c_api_opaque_internal.cc", | |
| "tensorflow/lite/kernels/internal/tensor_ctypes.cc", | |
| "tensorflow/lite/kernels/internal/opaque_tensor_ctypes.cc", | |
| "tensorflow/lite/kernels/internal/runtime_shape.cc", | |
| "tensorflow/compiler/mlir/lite/experimental/remat/metadata_util.cc", | |
| "tensorflow/compiler/mlir/lite/utils/string_utils.cc", | |
| "tensorflow/compiler/mlir/lite/core/api/error_reporter.cc", | |
| "tensorflow/lite/core/api/flatbuffer_conversions.cc", | |
| "tensorflow/lite/core/api/op_resolver.cc", | |
| "tensorflow/lite/core/api/tensor_utils.cc", | |
| "tensorflow/lite/c/jni/jni_utils.cc", | |
| "tensorflow/lite/core/subgraph.cc", | |
| "tensorflow/lite/delegates/nnapi/nnapi_delegate.cc", | |
| "tensorflow/lite/delegates/nnapi/quant_lstm_sup.cc", | |
| "tensorflow/lite/delegates/serialization.cc", | |
| "tensorflow/lite/delegates/utils.cc", | |
| "tensorflow/lite/experimental/resource/initialization_status.cc", | |
| "tensorflow/lite/experimental/resource/resource_variable.cc", | |
| "tensorflow/lite/experimental/resource/static_hashtable.cc", | |
| "tensorflow/lite/external_cpu_backend_context.cc", | |
| "tensorflow/lite/graph_info.cc", | |
| "tensorflow/lite/core/interpreter.cc", | |
| "tensorflow/lite/core/interpreter_builder.cc", | |
| "tensorflow/lite/core/interpreter_experimental.cc", | |
| "tensorflow/lite/kernels/activations.cc", | |
| "tensorflow/lite/kernels/add.cc", | |
| "tensorflow/lite/kernels/add_n.cc", | |
| "tensorflow/lite/kernels/arg_min_max.cc", | |
| "tensorflow/lite/kernels/atan2.cc", | |
| "tensorflow/lite/kernels/assign_variable.cc", | |
| "tensorflow/lite/kernels/basic_rnn.cc", | |
| "tensorflow/lite/kernels/batch_matmul.cc", | |
| "tensorflow/lite/kernels/batch_to_space_nd.cc", | |
| "tensorflow/lite/kernels/bidirectional_sequence_lstm.cc", | |
| "tensorflow/lite/kernels/bidirectional_sequence_rnn.cc", | |
| "tensorflow/lite/kernels/broadcast_args.cc", | |
| "tensorflow/lite/kernels/broadcast_to.cc", | |
| "tensorflow/lite/kernels/bucketize.cc", | |
| "tensorflow/lite/kernels/call_once.cc", | |
| "tensorflow/lite/kernels/cast.cc", | |
| "tensorflow/lite/kernels/ceil.cc", | |
| "tensorflow/lite/kernels/comparisons.cc", | |
| "tensorflow/lite/kernels/complex_support.cc", | |
| "tensorflow/lite/kernels/concatenation.cc", | |
| "tensorflow/lite/kernels/conv.cc", | |
| "tensorflow/lite/kernels/conv3d.cc", | |
| "tensorflow/lite/kernels/conv3d_transpose.cc", | |
| "tensorflow/lite/kernels/cpu_backend_context.cc", | |
| "tensorflow/lite/kernels/cpu_backend_gemm_eigen.cc", | |
| "tensorflow/lite/kernels/cumsum.cc", | |
| "tensorflow/lite/kernels/densify.cc", | |
| "tensorflow/lite/kernels/depth_to_space.cc", | |
| "tensorflow/lite/kernels/depthwise_conv.cc", | |
| "tensorflow/lite/kernels/dequantize.cc", | |
| "tensorflow/lite/kernels/div.cc", | |
| "tensorflow/lite/kernels/dynamic_update_slice.cc", | |
| "tensorflow/lite/kernels/eigen_support.cc", | |
| "tensorflow/lite/kernels/elementwise.cc", | |
| "tensorflow/lite/kernels/embedding_lookup.cc", | |
| "tensorflow/lite/kernels/embedding_lookup_sparse.cc", | |
| "tensorflow/lite/kernels/exp.cc", | |
| "tensorflow/lite/kernels/expand_dims.cc", | |
| "tensorflow/lite/kernels/fake_quant.cc", | |
| "tensorflow/lite/kernels/fill.cc", | |
| "tensorflow/lite/kernels/floor.cc", | |
| "tensorflow/lite/kernels/floor_div.cc", | |
| "tensorflow/lite/kernels/floor_mod.cc", | |
| "tensorflow/lite/kernels/fully_connected.cc", | |
| "tensorflow/lite/kernels/gather.cc", | |
| "tensorflow/lite/kernels/gather_nd.cc", | |
| "tensorflow/lite/kernels/hashtable.cc", | |
| "tensorflow/lite/kernels/hashtable_find.cc", | |
| "tensorflow/lite/kernels/hashtable_import.cc", | |
| "tensorflow/lite/kernels/hashtable_lookup.cc", | |
| "tensorflow/lite/kernels/hashtable_size.cc", | |
| "tensorflow/lite/kernels/if.cc", | |
| "tensorflow/lite/kernels/internal/kernel_utils.cc", | |
| "tensorflow/lite/kernels/internal/optimized/cpu_check.cc", | |
| "tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.cc", | |
| "tensorflow/lite/kernels/internal/optimized/sse_tensor_utils.cc", | |
| "tensorflow/lite/kernels/internal/quantization_util.cc", | |
| "tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc", | |
| "tensorflow/lite/kernels/internal/tensor_utils.cc", | |
| "tensorflow/lite/kernels/internal/transpose_utils.cc", | |
| "tensorflow/lite/kernels/internal/utils/sparsity_format_converter.cc", | |
| "tensorflow/lite/kernels/kernel_util.cc", | |
| "tensorflow/lite/kernels/l2norm.cc", | |
| "tensorflow/lite/kernels/local_response_norm.cc", | |
| "tensorflow/lite/kernels/logical.cc", | |
| "tensorflow/lite/kernels/lsh_projection.cc", | |
| "tensorflow/lite/kernels/lstm.cc", | |
| "tensorflow/lite/kernels/lstm_eval.cc", | |
| "tensorflow/lite/kernels/matrix_diag.cc", | |
| "tensorflow/lite/kernels/matrix_set_diag.cc", | |
| "tensorflow/lite/kernels/maximum_minimum.cc", | |
| "tensorflow/lite/kernels/mirror_pad.cc", | |
| "tensorflow/lite/kernels/mul.cc", | |
| "tensorflow/lite/kernels/neg.cc", | |
| "tensorflow/lite/kernels/non_max_suppression.cc", | |
| "tensorflow/lite/kernels/one_hot.cc", | |
| "tensorflow/lite/kernels/pack.cc", | |
| "tensorflow/lite/kernels/pad.cc", | |
| "tensorflow/lite/kernels/pooling.cc", | |
| "tensorflow/lite/kernels/pow.cc", | |
| "tensorflow/lite/kernels/quantize.cc", | |
| "tensorflow/lite/kernels/random_ops.cc", | |
| "tensorflow/lite/kernels/random_uniform_custom.cc", | |
| "tensorflow/lite/kernels/range.cc", | |
| "tensorflow/lite/kernels/rank.cc", | |
| "tensorflow/lite/kernels/read_variable.cc", | |
| "tensorflow/lite/kernels/reduce.cc", | |
| "tensorflow/lite/core/kernels/register.cc", | |
| "tensorflow/lite/kernels/register_ref.cc", | |
| "tensorflow/lite/kernels/reshape.cc", | |
| "tensorflow/lite/kernels/resize_bilinear.cc", | |
| "tensorflow/lite/kernels/resize_nearest_neighbor.cc", | |
| "tensorflow/lite/kernels/reverse.cc", | |
| "tensorflow/lite/kernels/reverse_sequence.cc", | |
| "tensorflow/lite/kernels/rfft2d.cc", | |
| "tensorflow/lite/kernels/round.cc", | |
| "tensorflow/lite/kernels/scatter_nd.cc", | |
| "tensorflow/lite/kernels/segment_sum.cc", | |
| "tensorflow/lite/kernels/select.cc", | |
| "tensorflow/lite/kernels/shape.cc", | |
| "tensorflow/lite/kernels/sign.cc", | |
| "tensorflow/lite/kernels/skip_gram.cc", | |
| "tensorflow/lite/kernels/slice.cc", | |
| "tensorflow/lite/kernels/space_to_batch_nd.cc", | |
| "tensorflow/lite/kernels/space_to_depth.cc", | |
| "tensorflow/lite/kernels/sparse_to_dense.cc", | |
| "tensorflow/lite/kernels/split.cc", | |
| "tensorflow/lite/kernels/split_v.cc", | |
| "tensorflow/lite/kernels/squared_difference.cc", | |
| "tensorflow/lite/kernels/squeeze.cc", | |
| "tensorflow/lite/kernels/strided_slice.cc", | |
| "tensorflow/lite/kernels/sub.cc", | |
| "tensorflow/lite/kernels/svdf.cc", | |
| "tensorflow/lite/kernels/tile.cc", | |
| "tensorflow/lite/kernels/topk_v2.cc", | |
| "tensorflow/lite/kernels/transpose.cc", | |
| "tensorflow/lite/kernels/transpose_conv.cc", | |
| "tensorflow/lite/kernels/unidirectional_sequence_lstm.cc", | |
| "tensorflow/lite/kernels/unidirectional_sequence_rnn.cc", | |
| "tensorflow/lite/kernels/unique.cc", | |
| "tensorflow/lite/kernels/unpack.cc", | |
| "tensorflow/lite/kernels/unsorted_segment.cc", | |
| "tensorflow/lite/kernels/var_handle.cc", | |
| "tensorflow/lite/kernels/where.cc", | |
| "tensorflow/lite/kernels/while.cc", | |
| "tensorflow/lite/kernels/zeros_like.cc", | |
| "tensorflow/lite/minimal_logging.cc", | |
| "tensorflow/lite/minimal_logging_android.cc", | |
| "tensorflow/compiler/mlir/lite/mmap_allocation.cc", | |
| "tensorflow/compiler/mlir/lite/core/model_builder_base.cc", | |
| "tensorflow/lite/mutable_op_resolver.cc", | |
| "tensorflow/lite/nnapi/nnapi_implementation.cc", | |
| "tensorflow/lite/nnapi/nnapi_util.cc", | |
| "tensorflow/lite/nnapi/sl/SupportLibrary.cc", | |
| "tensorflow/lite/npu_feature.cc", | |
| "tensorflow/lite/optional_debug_tools.cc", | |
| "tensorflow/lite/profiling/atrace_profiler.cc", | |
| "tensorflow/lite/profiling/platform_profiler.cc", | |
| "tensorflow/lite/profiling/root_profiler.cc", | |
| "tensorflow/compiler/mlir/lite/schema/schema_conversion_utils.cc", | |
| "tensorflow/compiler/mlir/lite/schema/schema_utils.cc", | |
| "tensorflow/lite/core/signature_runner.cc", | |
| "tensorflow/lite/simple_memory_arena.cc", | |
| "tensorflow/lite/simple_planner.cc", | |
| "tensorflow/lite/stderr_reporter.cc", | |
| "tensorflow/lite/string_util.cc", | |
| "tensorflow/lite/tflite_with_xnnpack_optional.cc", | |
| "tensorflow/lite/tools/delegates/delegate_provider.cc", | |
| "tensorflow/lite/tools/tool_params.cc", | |
| "tensorflow/lite/core/tools/verifier_internal.cc", | |
| "tensorflow/lite/tools/versioning/op_signature.cc", | |
| "tensorflow/compiler/mlir/lite/tools/versioning/op_version.cc", | |
| "tensorflow/compiler/mlir/lite/tools/versioning/op_signature.cc", | |
| "tensorflow/compiler/mlir/lite/core/api/flatbuffer_conversions.cc", | |
| "tensorflow/lite/util.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "libtflite_framework_compiler_srcs", | |
| srcs: [ | |
| "tensorflow/compiler/mlir/lite/allocation.cc", | |
| "tensorflow/compiler/mlir/lite/core/api/error_reporter.cc", | |
| "tensorflow/compiler/mlir/lite/core/model_builder_base.cc", | |
| "tensorflow/compiler/mlir/lite/mmap_allocation.cc", | |
| "tensorflow/compiler/mlir/lite/schema/schema_utils.cc", | |
| "tensorflow/compiler/mlir/lite/experimental/remat/metadata_util.cc", | |
| "tensorflow/compiler/mlir/lite/utils/string_utils.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tflite_core_kernels_register", | |
| srcs: ["tensorflow/lite/core/kernels/register.cc"], | |
| } | |
| // Consolidated from tensorflow/core/**/Android.bp | |
| // From tensorflow/core/framework/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_framework_mobile_srcs_only_runtime", | |
| srcs: [ | |
| ":tensorflow_core_framework_pb_text_only_runtime", | |
| "tensorflow/core/framework/attr_value_util.cc", | |
| "third_party/xla/xla/tsl/framework/cancellation.cc", | |
| "tensorflow/core/framework/collective.cc", | |
| "tensorflow/core/framework/common_shape_fns.cc", | |
| "tensorflow/core/framework/dataset.cc", | |
| "tensorflow/core/framework/device.cc", | |
| "tensorflow/core/framework/device_base.cc", | |
| "tensorflow/core/framework/device_factory.cc", | |
| "tensorflow/core/framework/full_type_inference_util.cc", | |
| "tensorflow/core/framework/full_type_util.cc", | |
| "tensorflow/core/framework/function.cc", | |
| "tensorflow/core/framework/function_handle_cache.cc", | |
| "tensorflow/core/framework/graph_def_util.cc", | |
| "tensorflow/core/framework/graph_to_functiondef.cc", | |
| "tensorflow/core/framework/kernel_def_builder.cc", | |
| "tensorflow/core/framework/kernel_def_util.cc", | |
| "tensorflow/core/framework/load_library.cc", | |
| "tensorflow/core/framework/local_rendezvous.cc", | |
| "tensorflow/core/framework/logging.cc", | |
| "tensorflow/core/framework/lookup_interface.cc", | |
| "tensorflow/core/framework/memory_types.cc", | |
| "tensorflow/core/framework/metrics.cc", | |
| "tensorflow/core/framework/model.cc", | |
| "tensorflow/core/framework/node_def_builder.cc", | |
| "tensorflow/core/framework/node_def_util.cc", | |
| "tensorflow/core/framework/node_properties.cc", | |
| "tensorflow/core/framework/op.cc", | |
| "tensorflow/core/framework/op_def_builder.cc", | |
| "tensorflow/core/framework/op_def_util.cc", | |
| "tensorflow/core/framework/op_kernel.cc", | |
| "tensorflow/core/framework/op_segment.cc", | |
| "tensorflow/core/framework/reader_base.cc", | |
| "tensorflow/core/framework/ref_var.cc", | |
| "tensorflow/core/framework/rendezvous.cc", | |
| "tensorflow/core/framework/resource_mgr.cc", | |
| "tensorflow/core/framework/resource_var.cc", | |
| "tensorflow/core/framework/run_handler.cc", | |
| "tensorflow/core/framework/run_handler_util.cc", | |
| "tensorflow/core/framework/shape_inference.cc", | |
| "tensorflow/core/framework/tensor_slice.cc", | |
| "tensorflow/core/framework/tensor_util.cc", | |
| "tensorflow/core/framework/versions.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_framework_mobile_srcs_no_runtime", | |
| srcs: [ | |
| ":tensorflow_core_framework_pb_text_no_runtime", | |
| "third_party/xla/xla/tsl/framework/allocator.cc", | |
| "third_party/xla/xla/tsl/framework/allocator_registry.cc", | |
| "tensorflow/core/framework/bfloat16.cc", | |
| "third_party/xla/xla/tsl/framework/cpu_allocator_impl.cc", | |
| "tensorflow/core/framework/kernel_shape_util.cc", | |
| "tensorflow/core/framework/log_memory.cc", | |
| "tensorflow/core/framework/ops_util.cc", | |
| "tensorflow/core/framework/resource_handle.cc", | |
| "tensorflow/core/framework/tensor.cc", | |
| "tensorflow/core/framework/tensor_shape.cc", | |
| "third_party/xla/xla/tsl/framework/tracking_allocator.cc", | |
| "tensorflow/core/framework/typed_allocator.cc", | |
| "tensorflow/core/framework/types.cc", | |
| "tensorflow/core/framework/variant.cc", | |
| "tensorflow/core/framework/variant_op_registry.cc", | |
| "tensorflow/core/framework/variant_tensor_data.cc", | |
| ], | |
| } | |
| genrule { | |
| name: "tflite_internal_cc_protos", | |
| tools: ["gen_proto_text_functions"], | |
| cmd: "$(location gen_proto_text_functions) $(genDir) \"\" $(in)", | |
| srcs: [ | |
| "tensorflow/core/framework/attr_value.proto", | |
| "tensorflow/core/framework/resource_handle.proto", | |
| "tensorflow/core/framework/tensor.proto", | |
| "tensorflow/core/framework/tensor_shape.proto", | |
| "tensorflow/core/framework/types.proto", | |
| ":tensorflow_tools_proto_text_placeholder", | |
| ], | |
| out: [ | |
| "tensorflow/core/framework/attr_value.pb_text.h", | |
| "tensorflow/core/framework/attr_value.pb_text-impl.h", | |
| "tensorflow/core/framework/resource_handle.pb_text.h", | |
| "tensorflow/core/framework/resource_handle.pb_text-impl.h", | |
| "tensorflow/core/framework/tensor.pb_text.h", | |
| "tensorflow/core/framework/tensor.pb_text-impl.h", | |
| "tensorflow/core/framework/tensor_shape.pb_text.h", | |
| "tensorflow/core/framework/tensor_shape.pb_text-impl.h", | |
| "tensorflow/core/framework/types.pb_text.h", | |
| "tensorflow/core/framework/types.pb_text-impl.h", | |
| ], | |
| } | |
| genrule { | |
| name: "tensorflow_core_framework_registration_options", | |
| srcs: [ | |
| "tensorflow/core/framework/registration/options.h.tpl", | |
| ], | |
| out: [ | |
| "tensorflow/core/framework/registration/options.h", | |
| ], | |
| cmd: "sed 's@#define_option REGISTRATION_V2@// From Soong module //external/tensorflow:tensorflow_core_framework_registration_options\\n#define TF_OPTION_REGISTRATION_V2() false@' $(in) > $(out)", | |
| } | |
| genrule { | |
| name: "tensorflow_core_framework_pb_text_only_runtime", | |
| tools: ["gen_proto_text_functions"], | |
| cmd: "$(location gen_proto_text_functions) $(genDir) \"\" $(in)", | |
| srcs: [ | |
| "tensorflow/core/framework/attr_value.proto", | |
| "tensorflow/core/framework/resource_handle.proto", | |
| "tensorflow/core/framework/tensor.proto", | |
| "tensorflow/core/framework/tensor_shape.proto", | |
| "tensorflow/core/framework/types.proto", | |
| ":tensorflow_tools_proto_text_placeholder", | |
| ], | |
| out: [ | |
| "tensorflow/core/framework/attr_value.pb_text.cc", | |
| "tensorflow/core/framework/types.pb_text.cc", | |
| ], | |
| } | |
| genrule { | |
| name: "tensorflow_core_framework_pb_text_no_runtime", | |
| tools: ["gen_proto_text_functions"], | |
| cmd: "$(location gen_proto_text_functions) $(genDir) \"\" $(in)", | |
| srcs: [ | |
| "tensorflow/core/framework/attr_value.proto", | |
| "tensorflow/core/framework/resource_handle.proto", | |
| "tensorflow/core/framework/tensor.proto", | |
| "tensorflow/core/framework/tensor_shape.proto", | |
| "tensorflow/core/framework/types.proto", | |
| ":tensorflow_tools_proto_text_placeholder", | |
| ], | |
| out: [ | |
| "tensorflow/core/framework/resource_handle.pb_text.cc", | |
| "tensorflow/core/framework/tensor.pb_text.cc", | |
| "tensorflow/core/framework/tensor_shape.pb_text.cc", | |
| ], | |
| } | |
| // From tensorflow/core/lib/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_lib_mobile_src_only_runtime", | |
| srcs: [ | |
| "third_party/xla/xla/tsl/lib/strings/proto_serialization.cc", | |
| "tensorflow/core/lib/strings/ordered_code.cc", | |
| "third_party/xla/xla/tsl/lib/monitoring/collection_registry.cc", | |
| "tensorflow/core/lib/core/arena.cc", | |
| "third_party/xla/xla/tsl/lib/hash/crc32c.cc", | |
| "third_party/xla/xla/tsl/lib/histogram/histogram.cc", | |
| "third_party/xla/xla/tsl/lib/random/distribution_sampler.cc", | |
| "third_party/xla/xla/tsl/lib/random/simple_philox.cc", | |
| "third_party/xla/xla/tsl/lib/random/weighted_picker.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_lib_mobile_src_no_runtime", | |
| srcs: [ | |
| "tensorflow/core/lib/strings/proto_text_util.cc", | |
| ], | |
| } | |
| // From tensorflow/core/lib/io/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_lib_io_mobile_src_only_runtime", | |
| srcs: [ | |
| "third_party/xla/xla/tsl/lib/io/block.cc", | |
| "third_party/xla/xla/tsl/lib/io/block_builder.cc", | |
| "third_party/xla/xla/tsl/lib/io/buffered_inputstream.cc", | |
| "third_party/xla/xla/tsl/lib/io/cache.cc", | |
| "third_party/xla/xla/tsl/lib/io/compression.cc", | |
| "third_party/xla/xla/tsl/lib/io/format.cc", | |
| "third_party/xla/xla/tsl/lib/io/inputbuffer.cc", | |
| "third_party/xla/xla/tsl/lib/io/inputstream_interface.cc", | |
| "third_party/xla/xla/tsl/lib/io/iterator.cc", | |
| "third_party/xla/xla/tsl/lib/io/random_inputstream.cc", | |
| "third_party/xla/xla/tsl/lib/io/record_reader.cc", | |
| "third_party/xla/xla/tsl/lib/io/table.cc", | |
| "third_party/xla/xla/tsl/lib/io/table_builder.cc", | |
| "third_party/xla/xla/tsl/lib/io/two_level_iterator.cc", | |
| "third_party/xla/xla/tsl/lib/io/zlib_compression_options.cc", | |
| "third_party/xla/xla/tsl/lib/io/zlib_inputstream.cc", | |
| ], | |
| } | |
| // From tensorflow/core/platform/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_platform_protobuf_src", | |
| srcs: [ | |
| "third_party/xla/third_party/tsl/tsl/platform/protobuf.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_platform_mobile_srcs_no_runtime", | |
| srcs: [ | |
| "third_party/xla/third_party/tsl/tsl/platform/abi.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/coding.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/cpu_info.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/denormal.cc", | |
| "third_party/xla/xla/tsl/platform/errors.cc", | |
| "third_party/xla/xla/tsl/platform/file_system.cc", | |
| "third_party/xla/xla/tsl/platform/file_system_helper.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/hash.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/numbers.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/path.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/protobuf.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/protobuf_util.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/scanner.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/setround.cc", | |
| "third_party/xla/xla/tsl/platform/status.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/str_util.cc", | |
| "tensorflow/core/platform/tensor_coding.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/tracing.cc", | |
| "third_party/xla/xla/tsl/platform/threadpool.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_platform_mobile_srcs_only_runtime", | |
| srcs: [ | |
| "third_party/xla/third_party/tsl/tsl/platform/base64.cc", | |
| "tensorflow/core/platform/cpu_feature_guard.cc", | |
| "tensorflow/core/platform/platform_strings.cc", | |
| "third_party/xla/third_party/tsl/tsl/platform/random.cc", | |
| "third_party/xla/xla/tsl/platform/profile_utils/android_armv7a_cpu_utils_helper.cc", | |
| "third_party/xla/xla/tsl/platform/profile_utils/cpu_utils.cc", | |
| ], | |
| } | |
| // From tensorflow/core/profiler/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_profiler_mobile_srcs_no_runtime", | |
| srcs: [ | |
| "third_party/xla/third_party/tsl/tsl/profiler/lib/scoped_memory_debug_annotation.cc", | |
| ], | |
| } | |
| // From tensorflow/core/util/Android.bp | |
| // Copyright (C) 2017 The Android Open Source Project | |
| // | |
| // 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. | |
| filegroup { | |
| name: "tensorflow_core_util_mobile_srcs_no_runtime", | |
| srcs: [ | |
| "tensorflow/core/util/padding.cc", | |
| "tensorflow/core/util/tensor_format.cc", | |
| ], | |
| } | |
| filegroup { | |
| name: "tensorflow_core_util_mobile_srcs_only_runtime", | |
| srcs: [ | |
| "tensorflow/core/util/batch_util.cc", | |
| "tensorflow/core/util/bcast.cc", | |
| "third_party/xla/xla/tsl/util/command_line_flags.cc", | |
| "third_party/xla/xla/tsl/util/determinism.cc", | |
| "third_party/xla/xla/tsl/util/device_name_utils.cc", | |
| "tensorflow/core/util/dump_graph.cc", | |
| "tensorflow/core/util/einsum_op_util.cc", | |
| "third_party/xla/xla/tsl/util/env_var.cc", | |
| "tensorflow/core/util/equal_graph_def.cc", | |
| "tensorflow/core/util/example_proto_fast_parsing.cc", | |
| "tensorflow/core/util/example_proto_helper.cc", | |
| "tensorflow/core/util/guarded_philox_random.cc", | |
| "tensorflow/core/util/matmul_autotune.cc", | |
| "tensorflow/core/util/mirror_pad_mode.cc", | |
| "tensorflow/core/util/port.cc", | |
| "tensorflow/core/util/ragged_to_dense_util.cc", | |
| "tensorflow/core/util/saved_tensor_slice_util.cc", | |
| "tensorflow/core/util/stat_summarizer.cc", | |
| "tensorflow/core/util/strided_slice_op.cc", | |
| "tensorflow/core/util/tensor_slice_reader.cc", | |
| "tensorflow/core/util/tensor_slice_reader_cache.cc", | |
| "tensorflow/core/util/tensor_slice_set.cc", | |
| "tensorflow/core/util/tensor_slice_writer.cc", | |
| "third_party/xla/xla/tsl/util/use_cudnn.cc", | |
| "tensorflow/core/util/util.cc", | |
| "tensorflow/core/util/work_sharder.cc", | |
| "tensorflow/core/util/sparse/group_iterator.cc", | |
| "tensorflow/core/util/sparse/sparse_tensor.cc", | |
| "tensorflow/core/util/tensor_bundle/naming.cc", | |
| "tensorflow/core/util/tensor_bundle/tensor_bundle.cc", | |
| ], | |
| } |