cupyx.zeros_pinned#
- cupyx.zeros_pinned(shape, dtype=<class 'float'>, order='C')[source]#
Returns a new, zero-initialized NumPy array with the given shape and dtype.
This is a convenience function which is just
numpy.zeros()
, 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
An array filled with zeros.
- Return type
See also