Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 22, 2023
1 parent 01b9ee0 commit 9ca19c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_tensordict.py
Original file line number Diff line number Diff line change
Expand Up @@ -6580,6 +6580,7 @@ def test_map_seed(self):
chunksize=1,
max_tasks_per_child=5,
)
print('first')
generator.manual_seed(0)
td_out_1 = td.map(
TestMap.get_rand_incr,
Expand All @@ -6588,6 +6589,7 @@ def test_map_seed(self):
chunksize=1,
max_tasks_per_child=5,
)
print('second')
# we cannot know which worker picks which job, but since they will all have
# a seed from 0 to 4 and produce 1 number each, we can chekc that
# those numbers are exactly what we were expecting.
Expand Down

0 comments on commit 9ca19c7

Please sign in to comment.