Skip to content

Commit

Permalink
MultiDiscreteTensorSpec expects an nvec, not an n
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinticx committed Jun 6, 2024
1 parent 013d110 commit 9c7cc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/data/tensor_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3369,7 +3369,7 @@ def to(self, dest: Union[torch.dtype, DEVICE_TYPING]) -> CompositeSpec:
return self
mask = self.mask.to(dest) if self.mask is not None else None
return self.__class__(
n=self.nvec.to(dest),
nvec=self.nvec.to(dest),
shape=None,
device=dest_device,
dtype=dest_dtype,
Expand Down

0 comments on commit 9c7cc36

Please sign in to comment.