Skip to content

Commit 70e20fd

Browse files
Removed unused protobuf dependency
PiperOrigin-RevId: 353271947 Change-Id: I0fbaeaee4ff1edc715d6c69cd0ed6d5b67e6a172
1 parent 7b4d906 commit 70e20fd

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎tensorflow/lite/toco/BUILD‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -297,35 +297,29 @@ cc_library(
297297
"tensorflow_util.h",
298298
"toco_tooling.h",
299299
],
300-
copts = tf_copts() + select({
301-
"//tensorflow:macos": ["-DTOCO_SUPPORT_PORTABLE_PROTOS=0"],
302-
"//conditions:default": [],
303-
}),
300+
copts = tf_copts(),
304301
visibility = ["//visibility:public"],
305302
deps = [
306303
":graph_transformations",
307304
":model",
308305
":model_flags_proto_cc",
309-
":types_proto_cc",
310306
":runtime",
311-
":toco_graphviz_dump_options",
312307
":toco_flags_proto_cc",
308+
":toco_graphviz_dump_options",
313309
":toco_port",
314310
":tooling_util",
315-
"@com_google_protobuf//:protobuf_headers",
316-
"@com_google_absl//absl/memory",
317-
"@com_google_absl//absl/strings",
311+
":types_proto_cc",
318312
"//tensorflow/core:core_cpu_lib",
319313
"//tensorflow/core:framework",
320314
"//tensorflow/core:lib",
321315
"//tensorflow/core:protos_all_cc",
322316
"//tensorflow/lite/toco/tensorflow_graph_matching:resolve_cluster",
323317
"//tensorflow/lite/toco/tflite:export",
324318
"//tensorflow/lite/toco/tflite:import",
325-
] + select({
326-
# Placeholder for internal macOS rule.
327-
"//conditions:default": [],
328-
}),
319+
"@com_google_absl//absl/memory",
320+
"@com_google_absl//absl/strings",
321+
"@com_google_protobuf//:protobuf_headers",
322+
],
329323
)
330324

331325
tf_cc_test(

‎tensorflow/lite/toco/tooling_util.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ limitations under the License.
2525

2626
#include "absl/strings/string_view.h"
2727
#include "tensorflow/core/platform/logging.h"
28-
#if TOCO_SUPPORT_PORTABLE_PROTOS
29-
#include "third_party/protobuf/include/google/protobuf/text_format.h"
30-
#endif // TOCO_SUPPORT_PORTABLE_PROTOS
3128
#include "tensorflow/lite/kernels/internal/types.h"
3229
#include "tensorflow/lite/toco/model.h"
3330
#include "tensorflow/lite/toco/model_flags.pb.h"

0 commit comments

Comments
 (0)