def _sysconfig_module(): """Load tf.sysconfig if available and working (i.e., inside a pip package).""" try: _ = sysconfig_lib.get_include() except ImportError: return None return sysconfig_lib
def _sysconfig_module(): """Load tf.sysconfig if available and working (i.e., inside a pip package).""" try: _ = sysconfig_lib.get_include() except (ImportError, ValueError): # ValueError may come from saved_model_cli_test trying to enable # eager mode twice. return None return sysconfig_lib