Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Jan 15, 2024
1 parent b632be9 commit 121aa73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_rb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,8 +1497,8 @@ def test_max_value_writer_reduce(self, size, device, reduction):
writer=TensorDictMaxValueWriter(rank_key="key", reduction=reduction),
)

key = torch.rand(batch_size, *size)
obs = torch.rand(batch_size, *size)
key = torch.rand(batch_size, *size, device=device)
obs = torch.rand(batch_size, *size, device=device)
td = TensorDict(
{"key": key, "obs": obs},
batch_size=batch_size,
Expand Down

0 comments on commit 121aa73

Please sign in to comment.