chainer.backend.copyto¶
- chainer.backend.copyto(dst, src)[source]¶
Copies the elements of an ndarray to those of another one.
This function can copy the CPU/GPU arrays to the destination arrays on another device.
- Parameters
dst (
numpy.ndarray,cupy.ndarray,ideep4py.mdarrayorchainerx.ndarray) – Destination array.src (
numpy.ndarray,cupy.ndarray,ideep4py.mdarrayorchainerx.ndarray) – Source array.