Fork自 PaddlePaddle / Paddle
Fix #8368
* Fix constructor bug in mixed_vector * Fix warnings * Clean code * Extract for-loop init. Make nvcc happy