You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Composite log-prob aggregation wasn't defined explicitly and ``composite_lp_aggregate()`` will "
470
-
"currently return ``True``. However, from v0.9, this behaviour will change and ``composite_lp_aggregate`` will "
476
+
"currently return ``True``. However, from v0.9, this behavior will change and ``composite_lp_aggregate`` will "
471
477
"return ``False``. Please change your code accordingly by specifying the aggregation strategy via "
472
-
"`tensordict.nn.set_composite_lp_aggregate`.",
478
+
"`tensordict.nn.set_composite_lp_aggregate` or via the `COMPOSITE_LP_AGGREGATE` environment variable.",
473
479
category=DeprecationWarning,
474
480
)
475
481
returnTrue
@@ -483,6 +489,8 @@ class set_composite_lp_aggregate(_DecoratorContextManager):
483
489
will be summed into a single tensor with the shape of the root tensordict. This behaviour is being deprecated in favor of
484
490
non-aggregated log-probs, which offer more flexibility and a somewhat more natural API (tensordict samples, tensordict log-probs, tensordict entropies).
485
491
492
+
The value of composite_lp_aggregate can also be controlled through the `COMPOSITE_LP_AGGREGATE` environment variable.
0 commit comments