Fork自 PaddlePaddle / Paddle
* Also follow comments, change prefix to key
* Add reset and guard to unique_name