Skip to content

Commit 56c0db4

Browse files
committed
removed cupy result_type hack fixes #816
1 parent 6dd5faa commit 56c0db4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

xrspatial/utils.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010

1111
try:
1212
import cupy
13-
14-
if cupy.result_type is np.result_type:
15-
# hack until cupy release of https://github.com/cupy/cupy/pull/2249
16-
# Without this, cupy.histogram raises an error that cupy.result_type
17-
# is not defined.
18-
cupy.result_type = lambda *args: np.result_type(
19-
*[
20-
arg.dtype if isinstance(arg, cupy.ndarray)
21-
else arg for arg in args
22-
]
23-
)
2413
except ImportError:
2514
cupy = None
2615

0 commit comments

Comments
 (0)