Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed importing all frameworks if they're installed on importing ivy in the __init__.py and stateful/converters.py #10720

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

vedpatwardhan
Copy link
Contributor

  1. Removed framework-specific imports from __init__.py and updated the Shape.__new__ and the decorator sequence in ivy.all to allow implicit backend-based ivy.Shape creation for a given input tuple.
  2. Updated the stateful/converters.py by using importlib.find_spec to import the frameworks inside the corresponding converters and only if they haven't been imported before.

These changes had to be made to fix some issues with the multi-version tests

…y in the __init__.py and stateful/converters.py
@vedpatwardhan vedpatwardhan merged commit fa78825 into master Feb 21, 2023
@vedpatwardhan vedpatwardhan deleted the fix_imports branch February 21, 2023 06:27
vedpatwardhan added a commit to vedpatwardhan/ivy that referenced this pull request Feb 23, 2023
vedpatwardhan added a commit to vedpatwardhan/ivy that referenced this pull request Feb 23, 2023
vedpatwardhan added a commit to vedpatwardhan/ivy that referenced this pull request Feb 26, 2023
vedpatwardhan added a commit to vedpatwardhan/ivy that referenced this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant