Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix np.choice
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce authored and szha committed Sep 18, 2019
1 parent 681d9a7 commit 477e6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ def test_indexing_mode(sampler, set_size, samples_size, replace, weight=None):
samples = sampler(a)
assert len(samples) == samples_size
if not replace:
assert len(_np.unique(samples)) == samples_size
assert len(_np.unique(samples.asnumpy())) == samples_size

num_classes = 10
num_samples = 10 ** 8
Expand Down

0 comments on commit 477e6f7

Please sign in to comment.