Skip to content

Commit

Permalink
Remove reseeding of numpy in RandomlyShapedDataIterator (NVIDIA#3466)
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Lecki <[email protected]>
  • Loading branch information
klecki authored Nov 5, 2021
1 parent 154d395 commit 82a1113
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions dali/test/python/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ def __iter__(self):

def __next__(self):
import_numpy()
np.random.seed(self.seed)
random.seed(self.seed)
self.test_data = []
for _ in range(self.batch_size):
# Scale between 0.5 and 1.0
Expand All @@ -294,7 +292,6 @@ def __next__(self):

batch = self.test_data
self.i = (self.i + 1) % self.n
self.seed = self.seed + 12345678
return (batch)

next = __next__
Expand Down

0 comments on commit 82a1113

Please sign in to comment.