Skip to content

Commit c2fae32

Browse files
author
Vincent Moens
authored
[BugFix] Fix gym info scalar infos (#1842)
1 parent 6a42116 commit c2fae32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchrl/envs/gym_like.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(
8484
_info_spec = None
8585
elif spec is None:
8686
_info_spec = CompositeSpec(
87-
{key: UnboundedContinuousTensorSpec() for key in keys}, shape=[]
87+
{key: UnboundedContinuousTensorSpec(()) for key in keys}, shape=[]
8888
)
8989
elif not isinstance(spec, CompositeSpec):
9090
if self.keys is not None and len(spec) != len(self.keys):

0 commit comments

Comments
 (0)