From 7c7eb74ef2ec0d50228fe7e6519cbb0b1eb9d670 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 3 Apr 2023 15:58:04 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 521586389 --- mediapipe/calculators/tensorflow/BUILD | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mediapipe/calculators/tensorflow/BUILD b/mediapipe/calculators/tensorflow/BUILD index e7cc9cc94..0b30689eb 100644 --- a/mediapipe/calculators/tensorflow/BUILD +++ b/mediapipe/calculators/tensorflow/BUILD @@ -399,7 +399,7 @@ cc_library( # On android, this calculator is configured to run with lite protos. Therefore, # compile your binary with the flag TENSORFLOW_PROTOS=lite. cc_library( - name = "tensorflow_inference_calculator", + name = "tensorflow_inference_calculator_no_envelope_loader", srcs = ["tensorflow_inference_calculator.cc"], deps = [ ":tensorflow_inference_calculator_cc_proto", @@ -432,6 +432,19 @@ cc_library( alwayslink = 1, ) +cc_library( + name = "tensorflow_inference_calculator", + deps = [ + ":tensorflow_inference_calculator_no_envelope_loader", + ] + select({ + # Since "select" has "exactly one match" rule, we will need default condition to avoid + # "no matching conditions" error. Since all necessary dependencies are specified in + # "tensorflow_inference_calculator_no_envelope_loader" dependency, it is empty here. + "//conditions:default": [], + }), + alwayslink = 1, +) + cc_library( name = "tensorflow_session", hdrs = [