• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Description:
2#   TensorFlow Lite minimal example.
3
4package(default_visibility = ["//visibility:public"])
5
6licenses(["notice"])  # Apache 2.0
7
8load("//tensorflow/lite:build_def.bzl", "tflite_linkopts")
9
10cc_binary(
11    name = "minimal",
12    srcs = [
13        "minimal.cc",
14    ],
15    linkopts = tflite_linkopts() + select({
16        "//tensorflow:android": [
17            "-pie",  # Android 5.0 and later supports only PIE
18            "-lm",  # some builtin ops, e.g., tanh, need -lm
19        ],
20        "//conditions:default": [],
21    }),
22    deps = [
23        "//tensorflow/lite:framework",
24        "//tensorflow/lite/kernels:builtin_ops",
25    ],
26)
27