-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve tensorflow lazy import (#272)
* fix: improve tensorflow lazy import * refactor: fix docstrings and import order
- Loading branch information
Showing
21 changed files
with
221 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
"""Module that initializes the stable_learning_control package.""" | ||
# Make module version available. | ||
from .version import __version__ # noqa: F401 | ||
from .version import __version_tuple__ # noqa: F401 | ||
|
||
# Put algorithms in main namespace. | ||
from stable_learning_control.algos.pytorch.lac.lac import lac as lac_pytorch | ||
from stable_learning_control.algos.pytorch.sac.sac import sac as sac_pytorch | ||
from stable_learning_control.utils.import_utils import import_tf | ||
from stable_learning_control.utils.import_utils import tf_installed | ||
|
||
# Make module version available. | ||
from .version import __version__ # noqa: F401 | ||
from .version import __version_tuple__ # noqa: F401 | ||
|
||
if import_tf(dry_run=True, frail=False): | ||
if tf_installed(): | ||
from stable_learning_control.algos.tf2.lac.lac import lac as lac_tf2 | ||
from stable_learning_control.algos.tf2.sac.sac import sac as sac_tf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.