Skip to content

Commit a4ab70e

Browse files
committed
Fix to set _routine_accelerators
1 parent 49b750a commit a4ab70e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/cupy_tests/core_tests/test_ndarray_reduction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ def test_ptp_nan_imag(self, xp, dtype):
223223
class TestCubReduction(unittest.TestCase):
224224

225225
def setUp(self):
226-
self.old_accelerators = _accelerator.get_reduction_accelerators()
227-
_accelerator.set_reduction_accelerators(['cub'])
226+
self.old_accelerators = _accelerator.get_routine_accelerators()
227+
_accelerator.set_routine_accelerators(['cub'])
228228

229229
def tearDown(self):
230-
_accelerator.set_reduction_accelerators(self.old_accelerators)
230+
_accelerator.set_routine_accelerators(self.old_accelerators)
231231

232232
@testing.for_contiguous_axes()
233233
@testing.for_all_dtypes(no_bool=True, no_float16=True)

0 commit comments

Comments
 (0)