File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dpnp/tests/third_party/cupy/random_tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def test_goodness_of_fit(self):
9797 @_condition .repeat (3 , 10 )
9898 def test_goodness_of_fit_2 (self ):
9999 mx = 5
100- vals = random .randint (mx , size = (5 , 20 ))
100+ vals = random .randint (mx , size = (5 , 20 )). asnumpy ()
101101 counts = numpy .histogram (vals , bins = numpy .arange (mx + 1 ))[0 ]
102102 expected = numpy .array ([float (vals .size ) / mx ] * mx )
103103 assert _hypothesis .chi_square_test (counts , expected )
@@ -199,7 +199,7 @@ def test_goodness_of_fit(self):
199199 @_condition .repeat (3 , 10 )
200200 def test_goodness_of_fit_2 (self ):
201201 mx = 5
202- vals = random .randint (0 , mx , (5 , 20 ))
202+ vals = random .randint (0 , mx , (5 , 20 )). asnumpy ()
203203 counts = numpy .histogram (vals , bins = numpy .arange (mx + 1 ))[0 ]
204204 expected = numpy .array ([float (vals .size ) / mx ] * mx )
205205 assert _hypothesis .chi_square_test (counts , expected )
You can’t perform that action at this time.
0 commit comments