Skip to content

Commit

Permalink
test_sort(), defining seed for random data
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiaComito committed Apr 29, 2020
1 parent 3a2f85b commit 99904c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions heat/core/tests/test_manipulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ def test_sort(self):
ht.sort(data, axis="1")

rank = ht.MPI_WORLD.rank
ht.random.seed(1)
data = ht.random.randn(100, 1, split=0, device=ht_device)
result, _ = ht.sort(data, axis=0)
counts, _, _ = ht.get_comm().counts_displs_shape(data.gshape, axis=0)
Expand Down

0 comments on commit 99904c6

Please sign in to comment.