Skip to content

Commit

Permalink
[Quality] Make sure deprec warnings are displayed (#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Apr 18, 2024
1 parent fc8ccd9 commit ee8cafb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torchrl/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
VERBOSE = strtobool(os.environ.get("VERBOSE", "0"))
_os_is_windows = sys.platform == "win32"
RL_WARNINGS = strtobool(os.environ.get("RL_WARNINGS", "1"))
if RL_WARNINGS:
warnings.simplefilter("once", DeprecationWarning)

BATCHED_PIPE_TIMEOUT = float(os.environ.get("BATCHED_PIPE_TIMEOUT", "10000.0"))


Expand Down

0 comments on commit ee8cafb

Please sign in to comment.