Skip to content

Commit

Permalink
fix arg reduction test (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
hekaisheng authored and qinxuye committed Dec 14, 2018
1 parent 74d7936 commit e186b3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mars/tensor/execution/tests/test_reduction_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def testArgReduction(self):

random_min = np.random.randint(0, 200)
random_max = np.random.randint(200, 400)
raw[np.unravel_index(random_min, raw.shape)] = -1
raw[np.unravel_index(random_max, raw.shape)] = 2
raw_format[np.unravel_index(random_min, raw_format.shape)] = -1
raw_format[np.unravel_index(random_max, raw_format.shape)] = 2

raw = raw_format.tocoo()
arr = tensor(raw, chunks=3)
Expand Down

0 comments on commit e186b3c

Please sign in to comment.