chainerx.to_numpy

chainerx.to_numpy(array, copy=True)

Converts a ChainerX array to NumPy

Parameters
  • array (ndarray) – ChainerX array.

  • copy (bool) – If True, a copy is always made. Otherwise, the resulting array may be aliased with the input array.

Returns

NumPy array.

Return type

numpy.ndarray