From 8ce216b4096215575aeec28c4dbca0495aaa7021 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sat, 23 Dec 2023 00:59:32 -0500 Subject: [PATCH 22/23] Fix protobuf errors when using system protobuf --- tensorflow/api_template.__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorflow/api_template.__init__.py b/tensorflow/api_template.__init__.py index 32173808401..7f1e8879dd2 100644 --- a/tensorflow/api_template.__init__.py +++ b/tensorflow/api_template.__init__.py @@ -36,6 +36,8 @@ import site as _site import sys as _sys import typing as _typing +# Do not remove this line; See https://github.com/tensorflow/tensorflow/issues/42596 +from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import from tensorflow.python.tools import module_util as _module_util from tensorflow.python.util.lazy_loader import LazyLoader as _LazyLoader from tensorflow.python.util.lazy_loader import KerasLazyLoader as _KerasLazyLoader -- 2.34.1