dpnp.asnumpy

dpnp.asnumpy(a, order='C')[source]

Returns the NumPy array with input data.

Parameters:
  • a ({array_like}) -- Arbitrary object that can be converted to numpy.ndarray.

  • order ({'C', 'F', 'A', 'K'}) -- The desired memory layout of the converted array. When order is A, it uses F if a is column-major and uses C otherwise. And when order is K, it keeps strides as closely as possible.

Returns:

out -- NumPy interpretation of input array a.

Return type:

numpy.ndarray

Notes

This function works exactly the same as numpy.asarray.