cupy.empty#

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

Returns an array without initializing the elements.

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

  • dtype (data-type, optional) – 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:

cupy.ndarray

See also

numpy.empty()