Skip to content

Commit

Permalink
Chronos: remove checking in autots import (#5489)
Browse files Browse the repository at this point in the history
* remove checking

* add init
  • Loading branch information
TheaperDeng authored Aug 22, 2022
1 parent a725227 commit e72da82
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions python/chronos/src/bigdl/chronos/autots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e72da82

Please sign in to comment.