From 5129a4f2a6643ad6b0feaffc7525dcfb04a89dcc Mon Sep 17 00:00:00 2001 From: Zhoulong Jiang Date: Mon, 2 Nov 2020 14:29:22 +0000 Subject: [PATCH] revert the change: pywrap_dlopen_global_flags.py only enabled with static build --- tensorflow/python/BUILD | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index 6b5b392a681..c892dd793bb 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -5986,10 +5986,11 @@ py_library( name = "pywrap_tensorflow", srcs = [ "pywrap_tensorflow.py", - # modular TF need this file to load expose C API symbols - # in pywrap_tensorflow_internal.so - "pywrap_dlopen_global_flags.py", - ], + ] + if_static( + ["pywrap_dlopen_global_flags.py"], + # Import will fail, indicating no global dlopen flags + otherwise = [], + ), # b/153585257 srcs_version = "PY2AND3", deps = [":pywrap_tensorflow_internal"], )