• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//tensorflow:tensorflow.bzl", "get_compatible_with_portable")
2
3package(
4    default_visibility = ["//visibility:public"],
5    licenses = ["notice"],
6)
7
8cc_library(
9    name = "resource",
10    srcs = [
11        "initialization_status.cc",
12        "resource_variable.cc",
13        "static_hashtable.cc",
14    ],
15    hdrs = [
16        "initialization_status.h",
17        "lookup_interfaces.h",
18        "lookup_util.h",
19        "resource_base.h",
20        "resource_variable.h",
21        "static_hashtable.h",
22    ],
23    compatible_with = get_compatible_with_portable(),
24    deps = [
25        "//tensorflow/lite:string_util",
26        "//tensorflow/lite/c:c_api_types",
27        "//tensorflow/lite/c:common",
28        "//tensorflow/lite/kernels/internal:tensor",
29    ],
30)
31
32cc_test(
33    name = "resource_variable_test",
34    srcs = [
35        "resource_variable_test.cc",
36    ],
37    deps = [
38        ":resource",
39        "//tensorflow/lite:util",
40        "//tensorflow/lite/c:c_api_types",
41        "//tensorflow/lite/c:common",
42        "@com_google_googletest//:gtest",
43        "@com_google_googletest//:gtest_main",
44    ],
45)
46