Removed unused protobuf dependency

PiperOrigin-RevId: 353271947
Change-Id: I0fbaeaee4ff1edc715d6c69cd0ed6d5b67e6a172
This commit is contained in:
A. Unique TensorFlower 2021-01-22 10:40:04 -08:00 committed by TensorFlower Gardener
parent 7b4d906187
commit 70e20fd2a0
2 changed files with 7 additions and 16 deletions

View File

@ -297,24 +297,18 @@ cc_library(
"tensorflow_util.h",
"toco_tooling.h",
],
copts = tf_copts() + select({
"//tensorflow:macos": ["-DTOCO_SUPPORT_PORTABLE_PROTOS=0"],
"//conditions:default": [],
}),
copts = tf_copts(),
visibility = ["//visibility:public"],
deps = [
":graph_transformations",
":model",
":model_flags_proto_cc",
":types_proto_cc",
":runtime",
":toco_graphviz_dump_options",
":toco_flags_proto_cc",
":toco_graphviz_dump_options",
":toco_port",
":tooling_util",
"@com_google_protobuf//:protobuf_headers",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
":types_proto_cc",
"//tensorflow/core:core_cpu_lib",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
@ -322,10 +316,10 @@ cc_library(
"//tensorflow/lite/toco/tensorflow_graph_matching:resolve_cluster",
"//tensorflow/lite/toco/tflite:export",
"//tensorflow/lite/toco/tflite:import",
] + select({
# Placeholder for internal macOS rule.
"//conditions:default": [],
}),
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
"@com_google_protobuf//:protobuf_headers",
],
)
tf_cc_test(

View File

@ -25,9 +25,6 @@ limitations under the License.
#include "absl/strings/string_view.h"
#include "tensorflow/core/platform/logging.h"
#if TOCO_SUPPORT_PORTABLE_PROTOS
#include "third_party/protobuf/include/google/protobuf/text_format.h"
#endif // TOCO_SUPPORT_PORTABLE_PROTOS
#include "tensorflow/lite/kernels/internal/types.h"
#include "tensorflow/lite/toco/model.h"
#include "tensorflow/lite/toco/model_flags.pb.h"