From e72da8231e7a5b05f098db1f78b66b8cb57f27ba Mon Sep 17 00:00:00 2001 From: Junwei Deng <35031544+TheaperDeng@users.noreply.github.com> Date: Mon, 22 Aug 2022 23:25:36 +0800 Subject: [PATCH] Chronos: remove checking in autots import (#5489) * remove checking * add init --- python/chronos/src/bigdl/chronos/autots/__init__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python/chronos/src/bigdl/chronos/autots/__init__.py b/python/chronos/src/bigdl/chronos/autots/__init__.py index e2763cacaa1..64293534495 100644 --- a/python/chronos/src/bigdl/chronos/autots/__init__.py +++ b/python/chronos/src/bigdl/chronos/autots/__init__.py @@ -14,16 +14,14 @@ # limitations under the License. # import warnings -from bigdl.nano.utils.log4Error import invalidInputError import os if os.getenv("LD_PRELOAD", "null") != "null": - invalidInputError(False, - errMsg="Users of `bigdl.chronos.autots` should " - "unset bigdl-nano environment variables!", - fixMsg="Please run `source bigdl-nano-unset-env` " - "in your bash terminal") + warnings.warn("Users of `bigdl.chronos.autots` should " + "unset bigdl-nano environment variables!" + "Please run `source bigdl-nano-unset-env` " + "in your bash terminal") try: # TODO: make this a LazyImport