Skip to content

Commit

Permalink
Limit warning filter to torchrl (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebrl authored Feb 7, 2025
1 parent 3be85c6 commit 85d1e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
_os_is_windows = sys.platform == "win32"
RL_WARNINGS = strtobool(os.environ.get("RL_WARNINGS", "1"))
if RL_WARNINGS:
warnings.simplefilter("once", DeprecationWarning)
warnings.filterwarnings("once", category=DeprecationWarning, module="torchrl")

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

Expand Down

0 comments on commit 85d1e70

Please sign in to comment.