cupy.asfarray#

cupy.asfarray(a, dtype=<class 'numpy.float64'>)[source]#

Converts array elements to float type.

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

  • dtype – str or dtype object, optional

Returns:

The input array a as a float ndarray.

Return type:

cupy.ndarray

See also

numpy.asfarray()