Skip to content

Commit

Permalink
[fix]: experimental import fix (#1043)
Browse files Browse the repository at this point in the history
* [fix]: experimental import fix

* Update fairscale/experimental/__init__.py

* Update fairscale/experimental/__init__.py

Co-authored-by: Min Xu <min.xu.public@gmail.com>
  • Loading branch information
min-xu-ai and flying-x committed Jul 26, 2022
1 parent 3626a36 commit 4cb293e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fairscale/experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

from typing import List

from . import nn, optim, wgit
# Don't import sub-modules as experimental stuff otherwise gets imported directly
# when user does an `import fairscale`. This can cause experimental code's import
# dependencies (like pygit2) to be leaked into the fairscale main code.

__all__: List[str] = []

0 comments on commit 4cb293e

Please sign in to comment.