1package( 2 features = ["-layering_check"], 3 licenses = ["notice"], 4) 5 6package_group( 7 name = "tflite_micro", 8 packages = ["//..."], 9) 10 11package_group( 12 name = "microfrontend", 13 packages = ["//tensorflow/lite/experimental/microfrontend/..."], 14) 15 16cc_library( 17 name = "micro_test", 18 hdrs = [ 19 "micro_test.h", 20 ], 21 visibility = [ 22 ":microfrontend", 23 ":tflite_micro", 24 ], 25 deps = [ 26 "//tensorflow/lite/c:common", 27 "//tensorflow/lite/core/api", 28 "//tensorflow/lite/micro:micro_error_reporter", 29 "//tensorflow/lite/micro:micro_framework", 30 "//tensorflow/lite/micro:micro_utils", 31 "//tensorflow/lite/micro:system_setup", 32 "//tensorflow/lite/micro:test_helpers", 33 ], 34) 35 36cc_test( 37 name = "util_test", 38 srcs = [ 39 "util_test.cc", 40 ], 41 deps = [ 42 ":micro_test", 43 ], 44) 45 46cc_library( 47 name = "test_conv_model", 48 srcs = [ 49 "test_conv_model.cc", 50 ], 51 hdrs = [ 52 "test_conv_model.h", 53 ], 54 visibility = [ 55 ":tflite_micro", 56 ], 57) 58 59py_binary( 60 name = "generate_test_models", 61 srcs = ["generate_test_models.py"], 62 python_version = "PY3", 63 srcs_version = "PY3ONLY", 64 tags = [ 65 "no_oss", # TODO(b/174680668): Exclude python targets from OSS. 66 "nomicro_static", # TF dep incompatible w/ TF_LITE_STATIC_MEMORY. 67 "noubsan", # TODO(b/144512025): Fix raw_to_bitmap_test to fix ubsan failure. 68 ], 69 deps = [ 70 "//tensorflow:tensorflow_py", 71 "//third_party/py/numpy", 72 "@absl_py//absl:app", 73 ], 74) 75