Skip to content

Commit b5e56ae

Browse files
committed
returning get_array_module call
1 parent 1712647 commit b5e56ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httomolibgpu/misc/rescale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def rescale_to_int(
8181
output_dtype = np.uint32
8282

8383
if cupy_run:
84-
import cupy as xp
84+
xp = cp.get_array_module(data)
8585
else:
8686
import numpy as xp
8787

0 commit comments

Comments
 (0)