Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Aug 11, 2024
1 parent 65ca9b8 commit f56b8e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mocking_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,8 @@ def _step(
) -> TensorDictBase:
action = tensordict.get(self.action_key)
self.count += action.to(
dtype=torch.int, device=self.full_observation_spec["observation"].device
dtype=torch.int,
device=self.action_spec.device if self.device is None else self.device,
)
tensordict = TensorDict(
source={
Expand Down

0 comments on commit f56b8e0

Please sign in to comment.