cupy.ascontiguousarray#

cupy.ascontiguousarray(a, dtype=None)[source]#

Returns a C-contiguous array.

Parameters:
  • a (cupy.ndarray) – Source array.

  • dtype – Data type specifier.

Returns:

If no copy is required, it returns a. Otherwise, it returns a copy of a.

Return type:

cupy.ndarray