Skip to content

Commit 57621cb

Browse files
committed
debugging mpi_type_and_elements_of w/ split 0
1 parent ba3fdbd commit 57621cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heat/core/tests/test_random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_rand(self):
160160
self.assertTrue((counts == 1).all())
161161

162162
# Two large arrays that were created after each other don't share any values
163-
b = ht.random.rand(14, 7, 3, 12, 18, 42, split=4, dtype=ht.float64)
163+
b = ht.random.rand(14, 7, 3, 12, 18, 42, split=0, dtype=ht.float64)
164164
_, t_counts = torch.unique(b.larray, return_counts=True)
165165
# Assert that no value appears more than once locally
166166
print("DEBUGGING: t_counts>1: ", t_counts[t_counts > 1])
@@ -172,7 +172,7 @@ def test_rand(self):
172172
print("DEBUGGING: np_b.shape: ", np_b.shape)
173173
_, counts = np.unique(np_b, return_counts=True)
174174
print("DEBUGGING: counts>1: ", counts > 1)
175-
print("DEBUGGING: counts[counts > 1]: ", counts[counts > 1])
175+
# print("DEBUGGING: counts[counts > 1]: ", counts[counts > 1])
176176
print("DEBUGGING: b when counts > 1: ", _[counts > 1])
177177
# Assert that no value appears more than once
178178
self.assertTrue((counts == 1).all())

0 commit comments

Comments
 (0)