From 8e9207a7dec986698be477a8c67a9b11a4306021 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 29 Mar 2023 10:21:46 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 520373147 --- mediapipe/calculators/tensorflow/BUILD | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mediapipe/calculators/tensorflow/BUILD b/mediapipe/calculators/tensorflow/BUILD index 3e0017fec..e1a17bc36 100644 --- a/mediapipe/calculators/tensorflow/BUILD +++ b/mediapipe/calculators/tensorflow/BUILD @@ -553,6 +553,25 @@ cc_library( cc_library( name = "tensorflow_session_from_saved_model_generator", + defines = select({ + "//mediapipe:android": ["__ANDROID__"], + "//conditions:default": [], + }), + deps = [ + ":tensorflow_session_from_saved_model_generator_no_envelope_loader", + ] + select({ + "//conditions:default": [ + ], + }), + alwayslink = 1, +) + +# Same library as in "tensorflow_session_from_saved_model_generator" but without "envelope_loader" +# since it caused issues when integrating with Boq. Boq has a built-in "envelope_loader_dev" and +# conflits with "envelope_loader". +# See yaqs/1092546221614039040 +cc_library( + name = "tensorflow_session_from_saved_model_generator_no_envelope_loader", srcs = ["tensorflow_session_from_saved_model_generator.cc"], defines = select({ "//mediapipe:android": ["__ANDROID__"],