Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Apr 24, 2024
1 parent 1568b28 commit b4e20b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions torchrl/envs/libs/dm_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def _dmcontrol_to_torchrl_spec_transform(
shape = torch.Size([1])
return BoundedTensorSpec(
shape=shape,
low=spec.low,
high=spec.high,
low=spec.minimum,
high=spec.maximum,
dtype=dtype,
device=device,
)
Expand Down
2 changes: 1 addition & 1 deletion torchrl/modules/tensordict_module/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class QValueModule(TensorDictModuleBase):

def __init__(
self,
action_space: Optional[str],
action_space: Optional[str] = None,
action_value_key: Optional[NestedKey] = None,
action_mask_key: Optional[NestedKey] = None,
out_keys: Optional[Sequence[NestedKey]] = None,
Expand Down

0 comments on commit b4e20b7

Please sign in to comment.