Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
soma2000-lang committed Mar 6, 2023
1 parent 1ee10df commit 2da78c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
from ivy._version import __version__ as __version__
import builtins
import numpy as np
import importlib


modules = ["jax", "tensorflow", "torch"]


for module in modules:
if importlib.find_spec(module) is not None:
warnings.warn(f"{module} module detected,only Numpy should be imported")


warnings.filterwarnings("ignore", module="^(?!.*ivy).*$")
Expand Down

0 comments on commit 2da78c8

Please sign in to comment.