Skip to content

Commit 0755e4c

Browse files
committed
rm rumtimeerror
1 parent 9ffc9b3 commit 0755e4c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sklearn/utils/_array_api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ def move_to(*arrays, xp, device):
627627
# more details about the introduction of the `copy` and `device`
628628
# kwargs in the from_dlpack method and their expected
629629
# meaning by namespaces implementing the array API spec.
630-
# `RuntimeError`: occurs when converting from GPU to NumPy
631630
# TODO: try removing this once DLPack v1 more widely supported
632631
# TODO: ValueError not needed once min NumPy >=2.4.0:
633632
# https://github.com/numpy/numpy/issues/30341
@@ -637,7 +636,6 @@ def move_to(*arrays, xp, device):
637636
NotImplementedError,
638637
BufferError,
639638
ValueError,
640-
RuntimeError,
641639
):
642640
# Converting to numpy is tricky, handle this via dedicated function
643641
if _is_numpy_namespace(xp):

0 commit comments

Comments
 (0)