Enforce row-major order in cuPy array (#6459)

This commit is contained in:
Philip Hyunsu Cho 2020-12-03 18:29:10 -08:00 committed by GitHub
parent 4f70e14031
commit c103ec51d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,6 +424,7 @@ def _transform_cupy_array(data):
data, '__array__'):
import cupy # pylint: disable=import-error
data = cupy.array(data, copy=False)
data = data.astype(dtype=data.dtype, order='C', copy=False)
return data