Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_sort(), defining seed for random data
Browse files Browse the repository at this point in the history
ClaudiaComito committed Apr 29, 2020
1 parent 61fa97d commit 38287e8
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
@@ -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)

0 comments on commit 38287e8

Please sign in to comment.