forked from pytorch/rl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Added
implement_for
decorator (pytorch#618)
* [Feature] Added `implement_for` decorator (#) * `from_version` can be open (`None`). * Changed behaviour in case of missing module/version as was discussed. * Improved tests and exposed `implement_for` in the documentation Co-authored-by: vmoens <vincentmoens@gmail.com>
- Loading branch information
Showing
5 changed files
with
144 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ API Reference | |
modules | ||
objectives | ||
trainers | ||
utils |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. currentmodule:: torchrl._utils | ||
|
||
torchrl._utils package | ||
==================== | ||
|
||
Set of utility methods that are used internally by the library. | ||
|
||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:template: rl_template.rst | ||
|
||
implement_for |
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