Fork自 PaddlePaddle / Paddle
The buffer allocation size should be number of bytes, not number of floats.