Skip to content

Commit 8e3fb98

Browse files
author
Vincent Moens
committed
[Minor] Fix bad name in pytree warning
ghstack-source-id: 873fb75 Pull-Request-resolved: #1322 (cherry picked from commit ed1f3b4)
1 parent 8ca701f commit 8e3fb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensordict/nn/cudagraphs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __init__(
211211
if not strtobool(os.environ.get("EXCLUDE_TD_FROM_PYTREE", "0")):
212212
warnings.warn(
213213
f"Tensordict is registered in PyTree. This is incompatible with {self.__class__.__name__}. "
214-
f"Removing TDs from PyTree. To silence this warning, call tensordict.nn.functional_module._exclude_td_from_pytree().set() "
214+
f"Removing TDs from PyTree. To silence this warning, call tensordict.nn.functional_modules._exclude_td_from_pytree().set() "
215215
f"or set the environment variable `EXCLUDE_TD_FROM_PYTREE=1`. "
216216
f"This operation is irreversible."
217217
)

0 commit comments

Comments
 (0)