cupyx.empty_pinned#

cupyx.empty_pinned(shape, dtype=<class 'float'>, order='C')[source]#

Returns a new, uninitialized NumPy array with the given shape and dtype.

This is a convenience function which is just numpy.empty(), except that the underlying memory is pinned/pagelocked.

Parameters:
  • shape (int or tuple of ints) – Dimensionalities of the array.

  • dtype – Data type specifier.

  • order ({'C', 'F'}) – Row-major (C-style) or column-major (Fortran-style) order.

Returns:

A new array with elements not initialized.

Return type:

numpy.ndarray

See also

numpy.empty()