Revert "Fix the memcpy size"

This reverts commit 68f22dde4775004baa7255d01cd01562f6a81ece.
Fix bug: get the correct memory size for memcpy

GPU memcpy size should be array length multiplied with element type size.