Skip to content

Commit c20bab1

Browse files
authored
No longer sync TfLite OpResolver from upstream. (#2145)
With #1818, TFLM does not need the TfLite OpResolver. BUG=http://b/272808609
1 parent e2cdefd commit c20bab1

File tree

4 files changed

+4
-231
lines changed

4 files changed

+4
-231
lines changed

ci/tflite_files.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ tensorflow/lite/builtin_ops.h
55
tensorflow/lite/context_util.h
66
tensorflow/lite/core/api/error_reporter.cc
77
tensorflow/lite/core/api/flatbuffer_conversions.cc
8-
tensorflow/lite/core/api/op_resolver.cc
98
tensorflow/lite/core/api/tensor_utils.cc
109
tensorflow/lite/core/c/common.cc
1110
tensorflow/lite/kernels/internal/common.cc
@@ -19,7 +18,6 @@ tensorflow/lite/c/c_api_types.h
1918
tensorflow/lite/c/common.h
2019
tensorflow/lite/core/api/error_reporter.h
2120
tensorflow/lite/core/api/flatbuffer_conversions.h
22-
tensorflow/lite/core/api/op_resolver.h
2321
tensorflow/lite/core/api/tensor_utils.h
2422
tensorflow/lite/core/c/builtin_op_data.h
2523
tensorflow/lite/core/c/c_api_types.h

tensorflow/lite/core/api/BUILD

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ cc_library(
1515
hdrs = [
1616
"error_reporter.h",
1717
"flatbuffer_conversions.h",
18-
"op_resolver.h",
1918
"tensor_utils.h",
2019
],
2120
copts = tflite_copts() + micro_copts(),
2221
visibility = ["//visibility:public"],
2322
deps = [
2423
":error_reporter",
25-
":op_resolver",
2624
"//tensorflow/lite/c:common",
2725
"//tensorflow/lite/kernels/internal:compatibility",
2826
"//tensorflow/lite/schema:schema_fbs",
@@ -31,29 +29,10 @@ cc_library(
3129
],
3230
)
3331

34-
# We define separate targets for "op_resolver" and "error_reporter",
35-
# even though those headers are also exported by the "api" target,
36-
# so that targets which only want to depend on these small abstract base
37-
# class modules can express more fine-grained dependencies without
38-
# pulling in tensor_utils and flatbuffer_conversions.
39-
40-
cc_library(
41-
name = "op_resolver",
42-
srcs = ["op_resolver.cc"],
43-
hdrs = ["op_resolver.h"],
44-
copts = tflite_copts() + micro_copts(),
45-
visibility = [
46-
"//visibility:public",
47-
],
48-
deps = [
49-
":error_reporter",
50-
"//tensorflow/lite/c:common",
51-
"//tensorflow/lite/schema:schema_fbs",
52-
"//tensorflow/lite/schema:schema_utils",
53-
"@flatbuffers//:runtime_cc",
54-
],
55-
)
56-
32+
# We define separate targets for "error_reporter", even though those headers are
33+
# also exported by the "api" target, so that targets which only want to depend
34+
# on these small abstract base class modules can express more fine-grained
35+
# dependencies without pulling in tensor_utils and flatbuffer_conversions.
5736
cc_library(
5837
name = "error_reporter",
5938
srcs = ["error_reporter.cc"],

tensorflow/lite/core/api/op_resolver.cc

Lines changed: 0 additions & 68 deletions
This file was deleted.

tensorflow/lite/core/api/op_resolver.h

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)